Skip to content

Commit

Permalink
HOTFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
chanomkaimuk committed Aug 15, 2023
1 parent 636db38 commit 6bad4f4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from commands.restart import restart
from commands.gothefucktosleep import gothefucktosleep
from presence import watching
import bot
import sys

# load environment vars (from .env)
Expand All @@ -32,16 +33,7 @@
GUILD = os.getenv("DISCORD_GUILD")

deployment_date = datetime.datetime.now()

# setting up the bot
intents = discord.Intents.default()
# also turn on messages functionality
intents.message_content = True
# if you don't want all intents you can do discord.Intents.default()

# * set bot activity (watching/playing...)
movie_activity = watching.get_random_movie_as_activity()
client = discord.Client(intents=intents, activity=movie_activity)
client = bot.get_bot()
# CommandTree is where all our defined commands are stored
tree = discord.app_commands.CommandTree(client)
this_guild = discord.Object(id=GUILD) # basically refers to this server
Expand Down

0 comments on commit 6bad4f4

Please sign in to comment.