Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
chatbot/botClient.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (19 sloc)
979 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.ext import commands | |
"""Module which contains all the authentication keys and tokens for the Bot connection, API and Database access etc.""" | |
"""Add your discord bot application token here""" | |
botToken = "" #discord bot token | |
client = commands.Bot(command_prefix=commands.when_mentioned_or('>'), | |
description='CyberLife Prototype') | |
"""Add your discord user id here""" | |
adminId = '' | |
colorCode = [0x17e6f0, 0xe88f2a, 0xee0d0d, 0xff00ff] | |
# aqua blue, warning orange, danger red, eden club pink | |
"""Add your own API Keys Here""" | |
weatherKey = '' #https://openweathermap.org | |
timeKey = '' #https://timezonedb.com | |
dictionaryId = '' #https://developer.oxforddictionaries.com | |
dictionaryKey = '' | |
dbuser="" #MySQL database user name | |
dbpasswd="" #MySQL database user password | |
#https://od-api.oxforddictionaries.com/api/v1 dictionary base url requests | |
#timeKey = '2Wa5YbqSPqKsfLkjbuPjQSjabEJA4u' https://www.amdoren.com |