add updateroles command
@@ -54,6 +54,7 @@ class Owner(commands.Cog):
**{0}restart** *forcibly restarts the bot*
**{0}getlatest** *pulls latest from github and restarts bot*
**{0}backupdb** *backs up the db*
+**{0}updateroles** *does roles idk bro*
""".format(ctx.prefix), color=discord.Color.green())
embed_msg.set_author(name="Villager Bot Owner Commands", url=discord.Embed.Empty, icon_url="http://172.10.17.177/images/villagerbotsplash1.png")
await ctx.send(embed=embed_msg)
@@ -342,6 +343,12 @@ Latency: {round(self.bot.latency*1000, 2)} ms
await self.db.drop_prefix(gid)
await ctx.send(f"Reset the prefix for guild: {self.bot.get_guild(gid)}")
+ @commands.command(name="updateroles")
+ @commands.is_owner()
+ async def do_roles(self, ctx):
+ for user in self.bot.get_guild(641117791272960031):
+ await self.bot.get_cog("Econ").update_user_role(user.id)
+ await ctx.send("Done.")
def setup(bot):
bot.add_cog(Owner(bot))
