discord
swadhinbiswas committed 2 years ago
b84c4c7
1 parent 9b4e6c0
commit b84c4c7
3 files changed
+13 -0
Showing 3 changed files+13-0
▼GithubfetchBot/exmple.env.test
+0-0
0 | 0 |
▼GithubfetchBot/main.py
+8-0
| @@ -0,0 +1,8 @@ | ||
1 | +from typing import Final | |
2 | +import os | |
3 | +import discord | |
4 | +from dotenv import load_dotenv | |
5 | + | |
6 | +load_dotenv() | |
7 | +TOKEN:Final[str] = os.getenv('DISCORD_TOKEN') | |
8 | + | |
0 | 9 | |
▼GithubfetchBot/responces.py
+5-0
| @@ -0,0 +1,5 @@ | ||
1 | +def get_responce(user_input:str)->str: | |
2 | + if user_input == "hi": | |
3 | + return "Hello" | |
4 | + else: | |
5 | + return "I don't understand that command" | |
0 | 6 | |