Package: discordSuperUtils-splitted
discordSuperUtils-splittedDocumentationA modern python module including many useful features that make discord bot programming extremely easy.The documentation is not done. if you have any questions, feel free to ask them in ourdiscord server.InformationI have recently left the discordSuperUtils organization because of issues with the team that wont be listed here.Maybe this fork will merge with discordSuperUtils one day.FeaturesVery easy to use and user friendly.Object Oriented.Modern Leveling Manager.Modern Music/Audio playing manager.Modern Async Database Manager (SQLite, MongoDB, PostgreSQL, MySQL, MariaDB).Modern Paginator.Modern Reaction Manager.Modern Economy Manager.Modern Image Manager (PIL).Modern Invite Tracker.Modern Command Hinter.Modern FiveM Server Parser.Modern Birthday Manager.Modern Prefix Manager.Includes easy to use convertors.Modern spotify client that is optimized for player fetching.Modern Punishment Manager (Kick, Ban, Infractions, Mutes)And many more!
(MORE COMING SOON!)InstallationInstalling discordSuperUtils-splitted is very easy.python-mpipinstalldiscordSuperUtils-splittedExamplesLeveling Example (With Role Manager and Image Manager)importdiscordfromdiscord.extimportcommandsimportdiscordSuperUtilsbot=commands.Bot(command_prefix='-',intents=discord.Intents.all())RoleManager=discordSuperUtils.RoleManager()LevelingManager=discordSuperUtils.LevelingManager(bot,RoleManager)ImageManager=discordSuperUtils.ImageManager()# LevelingManager uses ImageManager to create the rank command.@bot.eventasyncdefon_ready():database=discordSuperUtils.DatabaseManager.connect(...)awaitRoleManager.connect_to_database(database,"xp_roles")awaitLevelingManager.connect_to_database(database,"xp")print('Leveling manager is ready.',bot.user)@LevelingManager.event()asyncdefon_level_up(message,member_data,roles):awaitmessage.reply(f"You are now level{awaitmember_data.level()}"+(f", you have received the{roles[0]}"f" role."ifroleselse""))@bot.command()asyncdefrank(ctx):member_data=awaitLevelingManager.get_account(ctx.author)ifnotmember_data:awaitctx.send(f"I am still creating your account! please wait a few seconds.")returnguild_leaderboard=awaitLevelingManager.get_leaderboard(ctx.guild)member=[xforxinguild_leaderboardifx.member==ctx.author.id]image=awaitImageManager.create_leveling_profile(ctx.author,member_data,discordSuperUtils.Backgrounds.GALAXY,(255,255,255),guild_leaderboard.index(member[0])+1ifmemberelse-1,outline=True)awaitctx.send(file=image)@bot.command()asyncdefset_roles(ctx,*roles:discord.Role):awaitRoleManager.set_roles(ctx.guild,{"roles":roles})@bot.command()asyncdefleaderboard(ctx):guild_leaderboard=awaitLevelingManager.get_leaderboard(ctx.guild)formatted_leaderboard=[f"Member:{x.member}, XP:{awaitx.xp()}"forxinguild_leaderboard]awaitdiscordSuperUtils.PageManager(ctx,discordSuperUtils.generate_embeds(formatted_leaderboard,title="Leveling Leaderboard",fields=25,description=f"Leaderboard of{ctx.guild}")).run()bot.run("token")More examples are listed in the examples folder.Known IssuesRemoving an animated emoji wont be recognized as a reaction role, as it shows up as not animated for some reason, breaking the reaction matcher. (Discord API Related)Spotify queueing is very slow.SupportSupport ServerDocumentation