Skip to content

Commit 140c615

Browse files
committed
Remove 'roles' command
Through the 'Channels & Roles' option, then it's not necessary t have a roles channel.
1 parent f97c8ae commit 140c615

File tree

4 files changed

+4
-118
lines changed

4 files changed

+4
-118
lines changed

bot.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datetime import datetime
77

88
from configuration import Config
9-
from messages import Messages
109

1110
# Add cogs
1211
from comandos.ping import Ping
@@ -16,7 +15,6 @@
1615
from comandos.limpia import Limpia
1716
from comandos.archivar import Archivar
1817
from comandos.enviar import Enviar
19-
from comandos.roles import Roles
2018

2119
# Global instance of the server
2220
guild = None
@@ -76,13 +74,14 @@ async def main():
7674
bot.data_mod = data_mod[~data_mod["message_id"].isin(ready_ids)]
7775

7876
await bot.add_cog(Ping(bot))
79-
await bot.add_cog(Moderacion(bot))
8077
await bot.add_cog(Ayuda(bot))
81-
await bot.add_cog(FloodSpam(bot))
78+
8279
await bot.add_cog(Limpia(bot))
8380
await bot.add_cog(Archivar(bot))
81+
82+
await bot.add_cog(Moderacion(bot))
83+
await bot.add_cog(FloodSpam(bot))
8484
await bot.add_cog(Enviar(bot))
85-
await bot.add_cog(Roles(bot))
8685

8786
# Removing the help command
8887
# bot.remove_command("help")

comandos/roles.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

config.toml.example

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ muted_role="..."
1212
[server]
1313
guild=
1414

15-
[roles]
16-
channel=
17-
[roles.X]
18-
desc="..."
19-
2015
[channels]
2116
[channels.eventos]
2217
main=

configuration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ def __init__(self):
3030
self.BOT_ID = config["bot"]["id"]
3131
self.LOG_FILE = config["bot"]["log_file"]
3232

33-
self.ROLES_CHANNEL = config["roles"]["channel"]
34-
self.ROLES = roles_info = {k:v["desc"] for k, v in config["roles"].items() if k!="channel"}
35-
3633
self.MOD_MAIN = config["moderation"]["channel_id"]
3734
self.MOD_ROLE = config["moderation"]["role"]
3835
self.MUTED_ROLE = config["moderation"]["muted_role"]

0 commit comments

Comments
 (0)