From 9dec4880614df60e35f4a3b455ea03ab6924c733 Mon Sep 17 00:00:00 2001 From: eibex <40539455+eibex@users.noreply.github.com> Date: Sat, 7 May 2022 20:16:20 +0200 Subject: [PATCH 1/2] remove prefix, disnake 2.5.0 --- README.md | 2 +- bot.py | 4 ++-- cogs/utils/config.py | 2 -- requirements.txt | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3b2ce242..7203fada 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Reaction Light Discord Server](https://img.shields.io/discord/914952998109716531?color=5865f2&logo=discord&logoColor=ffffff)](https://discord.gg/cqxZQkhhHm) [![Reaction Light 3.1.0](https://img.shields.io/badge/Reaction%20Light-3.1.0-yellow.svg)](https://github.com/eibex/reaction-light/blob/master/CHANGELOG.md) [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](#) -[![disnake 2.4.0+](https://img.shields.io/badge/disnake-2.4.0+-blue.svg)](#) +[![disnake 2.5.0+](https://img.shields.io/badge/disnake-2.5.0+-blue.svg)](#) ![Reaction Light Embed Example](https://i.imgur.com/f4b9Qye.png) diff --git a/bot.py b/bot.py index c3b4e539..1f5e28de 100644 --- a/bot.py +++ b/bot.py @@ -50,8 +50,8 @@ def __init__(self): self.activities = activity.Activities(f"{self.directory}/files/activities.csv") self.db = database.Database(f"{self.directory}/files/reactionlight.db") self.version = version.get(self.directory) - intents = disnake.Intents(guild_messages=True, guild_reactions=True, guilds=True) - super().__init__(command_prefix=self.config.prefix, intents=intents) + intents = disnake.Intents(message_content=True, guild_messages=True, guild_reactions=True, guilds=True) + super().__init__(intents=intents) for extension in extensions: self.load_extension(extension) diff --git a/cogs/utils/config.py b/cogs/utils/config.py index 19765aeb..679ac259 100644 --- a/cogs/utils/config.py +++ b/cogs/utils/config.py @@ -36,8 +36,6 @@ def load(self): self.config.read(f"{self.directory}/config.ini") self.token = str(self.config.get("server", "token")) self.botname = str(self.config.get("server", "name", fallback="Reaction Light")) - # We are leaving prefix as a dummy variable for now since it is still a positional argument of commands.Bot - self.prefix = str(self.config.get("server", "prefix", fallback="rl!")) self.botcolour = disnake.Colour(int(self.config.get("server", "colour", fallback="0xffff00"), 16)) system_channel = self.config.get("server", "system_channel", fallback=None) self.system_channel = int(system_channel) if system_channel else None diff --git a/requirements.txt b/requirements.txt index b6e01ad0..781a0c86 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -disnake>=2.4.0 +disnake>=2.5.0 From 69a149162530cfc3516e7abb014d81c298fbb100 Mon Sep 17 00:00:00 2001 From: eibex <40539455+eibex@users.noreply.github.com> Date: Sat, 7 May 2022 20:44:14 +0200 Subject: [PATCH 2/2] 3.1.1 --- .version | 2 +- CHANGELOG.md | 4 ++++ README.md | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.version b/.version index fd2a0186..94ff29cc 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -3.1.0 +3.1.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index a157d924..dbc02e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Reaction Light - Changelog +### 3.1.1 +- Fix message intents ([#110](https://github.com/eibex/reaction-light/pull/110) by [eibex](https://github.com/eibex)) +- Upgrade to disnake 2.5.0 (manual update; if you are on docker you will need to pull a new image - more info on the [wiki](https://github.com/eibex/reaction-light/wiki)) + ### 3.1.0 - Add `image` and `thumbnail` parameters to `/message edit` ([#59](https://github.com/eibex/reaction-light/issues/59) closed by [#109](https://github.com/eibex/reaction-light/pull/109) by [eibex](https://github.com/eibex)) - Support docker installations ([#95](https://github.com/eibex/reaction-light/issues/95) closed by [#107](https://github.com/eibex/reaction-light/pull/107) by [Edwinexd](https://github.com/Edwinexd)) diff --git a/README.md b/README.md index 7203fada..8ce03030 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Reaction Light - Discord Role Bot [![Reaction Light Discord Server](https://img.shields.io/discord/914952998109716531?color=5865f2&logo=discord&logoColor=ffffff)](https://discord.gg/cqxZQkhhHm) -[![Reaction Light 3.1.0](https://img.shields.io/badge/Reaction%20Light-3.1.0-yellow.svg)](https://github.com/eibex/reaction-light/blob/master/CHANGELOG.md) +[![Reaction Light 3.1.1](https://img.shields.io/badge/Reaction%20Light-3.1.1-yellow.svg)](https://github.com/eibex/reaction-light/blob/master/CHANGELOG.md) [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](#) [![disnake 2.5.0+](https://img.shields.io/badge/disnake-2.5.0+-blue.svg)](#)