Skip to content

Commit

Permalink
[main] Made bot run with latest version of the libs
Browse files Browse the repository at this point in the history
  • Loading branch information
M4xi1m3 committed Apr 20, 2023
1 parent 61930e5 commit 860c703
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cogs/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import discord
from discord.ext import commands

from emoji import UNICODE_EMOJI
# from emoji import UNICODE_EMOJI

from src.utils import user_only

Expand Down
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import json

from discord import Intents
from discord.ext import commands

from cogs.omega import Omega
Expand All @@ -30,7 +31,9 @@ class Bot(commands.Bot):
}

def __init__(self):
super().__init__(config["PREFIX"])
intents = Intents.default()
intents.message_content = True
super().__init__(config["PREFIX"], intents=intents)

self.description = "A bot for two Omega Discord servers."
self.token = config["TOKEN"]
Expand Down

0 comments on commit 860c703

Please sign in to comment.