diff --git a/.env b/.env deleted file mode 100644 index 33a56dbb..00000000 --- a/.env +++ /dev/null @@ -1,7 +0,0 @@ -#key to use for testing purposes -TG_API_KEY=6358601044:AAExqsgbJIvmpFuClgoIn4j-hUl1DRhZTJY -CMC_API_KEY=2c5c2e9f-859d-43b5-85e6-7d613a62cfd1 -DB_USER='teamkyle' -DB_PASSWORD='Bcamp123' -DB_HOST='tg-bot-server.mysql.database.azure.com' -DEBUG=True \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9818fbd1..c15c490f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .env +__pycache__/ + .vscode/ diff --git a/__pycache__/bot.cpython-311.pyc b/__pycache__/bot.cpython-311.pyc deleted file mode 100644 index 9bda2f81..00000000 Binary files a/__pycache__/bot.cpython-311.pyc and /dev/null differ diff --git a/__pycache__/bot.cpython-39.pyc b/__pycache__/bot.cpython-39.pyc deleted file mode 100644 index 0074caea..00000000 Binary files a/__pycache__/bot.cpython-39.pyc and /dev/null differ diff --git a/__pycache__/storer.cpython-311.pyc b/__pycache__/storer.cpython-311.pyc deleted file mode 100644 index d6b2f0d0..00000000 Binary files a/__pycache__/storer.cpython-311.pyc and /dev/null differ diff --git a/__pycache__/storer.cpython-39.pyc b/__pycache__/storer.cpython-39.pyc deleted file mode 100644 index cfa0ad73..00000000 Binary files a/__pycache__/storer.cpython-39.pyc and /dev/null differ diff --git a/bot.py b/bot.py index 1bfe8b1e..d487cc86 100644 --- a/bot.py +++ b/bot.py @@ -38,6 +38,17 @@ def get_bitcoin_price(): def create_bot(): bot = telebot.TeleBot(TG_API_KEY) + @bot.message_handler(commands=['help']) + def help(message): + bot.reply_to(message, """ + Available Commands:\n + /gm --> Says good morning\n + /gn --> Says goodnight\n + /btc --> Returns the current price of bitcoin in USD\n + /send --> Records your user_id in our database\n + /help --> send this same message to see available commands + """) + @bot.message_handler(commands=['greet']) def greet(message): bot.reply_to(message, "Hey whats up?")