@@ -45,21 +45,21 @@ async def on_message_delete(self, message: discord.Message):
45
45
#
46
46
# # TODO: Fix the backup command.
47
47
# # @commands.slash_command()
48
- # # @commands.has_any_role("Staff", "Owner ", "Project Manager")
48
+ # # @commands.has_any_role("Staff", "Sudo ", "Project Manager")
49
49
# # async def backup_db(self, ctx):
50
50
# # """Backup the MongoDB instance."""
51
51
# # self.bot.db_client.backup_db()
52
52
# # await ctx.respond("Database backed up.")
53
53
54
54
@commands .slash_command ()
55
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
55
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
56
56
async def add_all_members_to_db (self , ctx ):
57
57
"""Add all members to the database."""
58
58
self .bot .db_client .create_table_from_members (ctx .guild .members )
59
59
await ctx .respond ("All members added to database." )
60
60
61
61
@commands .slash_command ()
62
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
62
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
63
63
async def add_points_to_user (self , ctx , mention , points ):
64
64
"""Add points to a user."""
65
65
user = self .bot .get_user (int (mention .split ("@" )[1 ].split (">" )[0 ]))
@@ -69,7 +69,7 @@ async def add_points_to_user(self, ctx, mention, points):
69
69
await ctx .respond (f"{ points } point{ ('s' , '' )[abs (int (points )) == 1 ]} added to { mention } ." )
70
70
71
71
@commands .slash_command ()
72
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
72
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
73
73
async def add_points_to_all_users (self , ctx , points ):
74
74
"""Add points to all users."""
75
75
self .bot .db_client .add_points_to_all_users (int (points ))
@@ -78,7 +78,7 @@ async def add_points_to_all_users(self, ctx, points):
78
78
await ctx .respond (f"{ points } point{ ('s' , '' )[abs (int (points )) == 1 ]} added to all users." )
79
79
80
80
@commands .slash_command ()
81
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
81
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
82
82
async def remove_points_from_user (self , ctx , mention , points ):
83
83
"""Remove points from a user."""
84
84
mention = str (mention )
@@ -90,7 +90,7 @@ async def remove_points_from_user(self, ctx, mention, points):
90
90
await ctx .respond (f"{ points } point{ ('s' , '' )[abs (points ) == 1 ]} removed from { mention } ." )
91
91
92
92
@commands .slash_command ()
93
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
93
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
94
94
async def remove_points_from_all_users (self , ctx , points ):
95
95
"""Remove points from all users."""
96
96
points = int (points )
@@ -100,7 +100,7 @@ async def remove_points_from_all_users(self, ctx, points):
100
100
await ctx .respond (f"{ points } point{ ('s' , '' )[abs (points ) == 1 ]} removed from all users." )
101
101
102
102
@commands .slash_command ()
103
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
103
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
104
104
async def reset_points_for_user (self , ctx , mention ):
105
105
"""Reset points for a user."""
106
106
mention = str (mention )
@@ -111,7 +111,7 @@ async def reset_points_for_user(self, ctx, mention):
111
111
await ctx .respond (f"Points reset for { mention } ." )
112
112
113
113
@commands .slash_command ()
114
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
114
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
115
115
async def reset_points_for_all_users (self , ctx ):
116
116
"""Reset points for all users."""
117
117
self .bot .db_client .set_all_user_points (0 )
@@ -120,7 +120,7 @@ async def reset_points_for_all_users(self, ctx):
120
120
await ctx .respond ("Points reset for all users." )
121
121
122
122
@commands .slash_command ()
123
- @commands .has_any_role ("Admin" , "Owner " , "Staff" , "Project Manager" )
123
+ @commands .has_any_role ("Admin" , "Sudo " , "Staff" , "Project Manager" )
124
124
async def get_points_for_user (self , ctx , mention ):
125
125
"""Get points for a user."""
126
126
mention = str (mention )
0 commit comments