aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/bot.py b/bot.py
index 858731c..59ccd31 100644
--- a/bot.py
+++ b/bot.py
@@ -1,25 +1,16 @@
import discord
import random
-# import os # why
+import os # why
# from hentai import hentai
-# from dotenv import load_dotenv
+from dotenv import load_dotenv
# z!info
INFO_MESSAGE = "Discord bot created by Vidhu Kant Sharma"
greetings = ["Greetings", "Hello", "Hey", "Yahallo", "Namaskar", "Konnichiwa", "Yo"]
-
-
-# load_dotenv()
-# TOKEN =
-
-
-
-
-
-
-
+load_dotenv()
+TOKEN = os.getenv('DISCORD_TOKEN')
# frontend stuff
client = discord.Client()
@@ -34,6 +25,7 @@ async def on_ready():
@client.event
async def on_message(message):
if message.author == client.user:
+ await message.channel.send("nice try nigga")
return
if message.content[0:6] == 'z!say ':