Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Adam Molnar commited on
update roles with news, robotics
Browse files596 unmodified lines59759859960060160260333 unmodified lines637638639640641642643596 unmodified linesreturn# List the role IDs you want to include (replace these with your actual role IDs).role_ids = [1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1093982736961785877, 1359533406102487281]roles = [ctx.guild.get_role(rid) for rid in role_ids if ctx.guild.get_role(rid) is not None]# Create the persistent view.33 unmodified linesguild = bot.get_guild(879548962464493619)if guild:role_ids = [1093982736961785877, 1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023]roles = [guild.get_role(rid) for rid in role_ids if guild.get_role(rid) is not None]persistent_view = PersistentRoleSelectionView(roles)bot.add_view(persistent_view) # This makes the view persistent across restarts.596 unmodified lines59759859960060160260333 unmodified lines637638639640641642643596 unmodified linesreturn# List the role IDs you want to include (replace these with your actual role IDs).role_ids = [1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1093982736961785877, 1359533406102487281, 1174686719166124168, 1174686719166124168]roles = [ctx.guild.get_role(rid) for rid in role_ids if ctx.guild.get_role(rid) is not None]# Create the persistent view.33 unmodified linesguild = bot.get_guild(879548962464493619)if guild:role_ids = [1093982736961785877, 1014517792550166630, 1014548568238997616, 1014548769355862036, 1077250031180071023, 1174686719166124168, 1174686719166124168]roles = [guild.get_role(rid) for rid in role_ids if guild.get_role(rid) is not None]persistent_view = PersistentRoleSelectionView(roles)bot.add_view(persistent_view) # This makes the view persistent across restarts.
app.py+2-2