From 860c703ce024d1cdba4d7f7a70924fefc5cb8ec6 Mon Sep 17 00:00:00 2001 From: M4x1m3 Date: Thu, 20 Apr 2023 17:07:16 +0200 Subject: [PATCH] [main] Made bot run with latest version of the libs --- cogs/fun.py | 2 +- main.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cogs/fun.py b/cogs/fun.py index 3e0efe3..797314a 100644 --- a/cogs/fun.py +++ b/cogs/fun.py @@ -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 diff --git a/main.py b/main.py index d858e6d..9baa690 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import json +from discord import Intents from discord.ext import commands from cogs.omega import Omega @@ -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"]