Skip to content

Commit

Permalink
Merge pull request #110 from eibex/remove-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
eibex authored May 7, 2022
2 parents 8ff4c70 + 69a1491 commit b517e10
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.1.1
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 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.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)

Expand Down
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions cogs/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
disnake>=2.4.0
disnake>=2.5.0

0 comments on commit b517e10

Please sign in to comment.