diff options
-rw-r--r-- | .env | 2 | ||||
-rw-r--r-- | bigresult.py | 16 | ||||
-rw-r--r-- | main.py | 9 |
3 files changed, 21 insertions, 6 deletions
@@ -0,0 +1,2 @@ +DISCORD_TOKEN=MTMwMTcwNjIwNTE4NTQ0NTkwOQ.G97xsa.7jLRHy6lfrjroRAGiyHFjjfpWiALwKvNLwfUgQ +DISCORD_GUILD=meme dump place
\ No newline at end of file diff --git a/bigresult.py b/bigresult.py new file mode 100644 index 0000000..6a11d1b --- /dev/null +++ b/bigresult.py @@ -0,0 +1,16 @@ +import discord +from discord.ext import commands + +class BotClient(discord.ext.commands.Bot): + async def on_ready(self): + print("The big result bot is ready!") + for guild in self.guilds: + break; + await self.send_msg("Hurlo") + + async def send_msg(self, msg): + channel = self.get_channel(427176475406630914) + await channel.send(msg) + + + @@ -2,15 +2,12 @@ import os import discord from dotenv import load_dotenv +from bigresult import BotClient load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') -client = discord.Client() # This represents our connection with Discord - -# This runs when our bot has successfully made contact with Discord and is ready to go. -@client.event -async def on_ready(): - print(f"The big result bot is ready! Username:{client.user}") +intents = discord.Intents.all() +client = BotClient(intents=intents, command_prefix='!') # This represents our connection with Discord client.run(TOKEN) # This actually starts our bot
\ No newline at end of file |