main.py 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. import os
  2. from dotenv import load_dotenv
  3. import discord
  4. from discord.ext import commands
  5. from discord.commands import Option
  6. from discord.commands import slash_command
  7. from datetime import datetime
  8. import configparser
  9. import mysql.connector
  10. intents = discord.Intents.default()
  11. intents.message_content = True
  12. intents.members = True
  13. intents.guilds = True
  14. intents.reactions = True
  15. client = discord.Client(intents=intents)
  16. #------#
  17. #Load .env file
  18. load_dotenv()
  19. token = os.getenv("TOKEN")
  20. if token is None:
  21. raise ValueError("TOKEN not found in .env file")
  22. debug_guilds_up = []
  23. server_token = os.getenv("SERVER").split(",")
  24. for i in range(len(server_token)):
  25. debug_guilds_up.append(int(server_token[i]))
  26. dbhost = os.getenv("HOST")
  27. if dbhost is None:
  28. raise ValueError("HOST not found in .env file")
  29. dbname = os.getenv("NAME")
  30. if dbname is None:
  31. raise ValueError("NAME not found in .env file")
  32. dbpsswd = os.getenv("PASSWORD")
  33. if dbpsswd is None:
  34. raise ValueError("PASSWORD not found in .env file")
  35. dbdb = os.getenv("DATABASE")
  36. if dbdb is None:
  37. raise ValueError("DATABASE not found in .env file")
  38. #------#
  39. #ConfigParser
  40. config = configparser.RawConfigParser()
  41. configFilePath = r'config.cfg'
  42. config.read_file(open(configFilePath))
  43. label_rules = config.get('Reactionroles Rules', 'label_rules')
  44. role_rules = config.get('Reactionroles Rules', 'rules_role')
  45. channel_log = config.get('Logs', 'channel_log')
  46. channel_banlog = config.get('Logs', 'ban_log')
  47. #------#
  48. #Database initialization
  49. conn = mysql.connector.connect(
  50. host=dbhost,
  51. user=dbname,
  52. password=dbpsswd
  53. )
  54. cursor = conn.cursor()
  55. conn.database = dbdb
  56. cursor.execute("""
  57. CREATE TABLE IF NOT EXISTS User (
  58. id INT AUTO_INCREMENT PRIMARY KEY,
  59. userid BIGINT,
  60. discordname VARCHAR(100),
  61. roles INT
  62. )
  63. """)
  64. cursor.execute("""
  65. CREATE TABLE IF NOT EXISTS Warns (
  66. id INT AUTO_INCREMENT PRIMARY KEY,
  67. userid BIGINT,
  68. username VARCHAR(100),
  69. moderatorname VARCHAR(100),
  70. reason VARCHAR(250),
  71. date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  72. )
  73. """)
  74. cursor.execute("""
  75. CREATE TABLE IF NOT EXISTS Bans (
  76. id INT AUTO_INCREMENT PRIMARY KEY,
  77. userid BIGINT,
  78. username VARCHAR(100),
  79. moderatorname VARCHAR(100),
  80. reason VARCHAR(250),
  81. date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  82. )
  83. """)
  84. cursor.execute("""
  85. CREATE TABLE IF NOT EXISTS Unbans (
  86. id INT AUTO_INCREMENT PRIMARY KEY,
  87. userid BIGINT,
  88. username VARCHAR(100),
  89. moderatorname VARCHAR(100),
  90. reason VARCHAR(250),
  91. date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  92. )
  93. """
  94. )
  95. cursor.execute("""
  96. CREATE TABLE IF NOT EXISTS Kick (
  97. id INT AUTO_INCREMENT PRIMARY KEY,
  98. userid BIGINT,
  99. username VARCHAR(100),
  100. moderatorname VARCHAR(100),
  101. reason VARCHAR(250),
  102. date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  103. )
  104. """)
  105. #------#
  106. #Initialize Bot
  107. bot = commands.Bot(
  108. command_prefix=commands.when_mentioned_or("!"),
  109. description="VicePD Bot",
  110. intents=intents,
  111. debug_guilds=debug_guilds_up if debug_guilds_up else None
  112. )
  113. def load_extensions():
  114. cogs_dir = "./cogs"
  115. if not os.path.exists(cogs_dir):
  116. print(f"Cogs directory '{cogs_dir}' not found!")
  117. return
  118. for filename in os.listdir(cogs_dir):
  119. if filename.endswith(".py"):
  120. cog_list = os.path.splitext(filename)[0]
  121. try:
  122. bot.load_extension(f"cogs.{cog_list}")
  123. print(f"Loaded cog: {cog_list}")
  124. except Exception as e:
  125. print(f"Failed to load cog {cog_list}: {e}")
  126. class Admin(commands.Cog):
  127. def __init__(self, bot):
  128. self.bot = bot
  129. #------#
  130. #Print in Log if error occurs
  131. @bot.event
  132. async def on_application_command_error(ctx, error):
  133. channel = discord.utils.get(ctx.guild.channels, id=int(channel_log))
  134. if channel:
  135. await channel.send(f"Error occurred: {str(error)}")
  136. #---------------------------------#
  137. #Bot Online Console
  138. @bot.event
  139. async def on_ready():
  140. print(f"{bot.user} ist online")
  141. if bot.guilds:
  142. channel = discord.utils.get(bot.guilds[0].channels, id=int(channel_log))
  143. if channel:
  144. await channel.send(f"{bot.user} ist online")
  145. bot.add_view(PersistentRoleView()) #loading reactionrole memory
  146. print("Registrierte Slash-Commands:")
  147. for command in bot.pending_application_commands:
  148. print(f" - {command.name}")
  149. #---------------------------------------------------------------------------------------#
  150. #DONT Touch anything above this line, unless you know what you are doing!#
  151. #---------------------------------------------------------------------------------------#
  152. #---------------------------------#
  153. ## Greet
  154. @bot.slash_command(description="Greet a User")
  155. async def greet(ctx, user: str = Option(discord.User, "The user, you want to greet")):
  156. await ctx.respond(f"Hello {user.mention}")
  157. #---------------------------------#
  158. #---------------------------------#
  159. ## Say
  160. #---------------------------------#
  161. #---------------------------------#
  162. ## Userinfo
  163. @bot.slash_command(name="userinfo", description="Show informations of a user from this server")
  164. async def userinfo(
  165. ctx,
  166. user: str = Option(discord.User, "Select User"),
  167. ):
  168. if user is None:
  169. user = ctx.author
  170. elif user not in ctx.guild.members:
  171. await ctx.respond("The selected user is not a member on this Server!", ephemeral=True)
  172. return
  173. elif user == bot.user:
  174. await ctx.respond(f"This is me - the {bot.user}", ephemeral=True)
  175. return
  176. embed = discord.Embed(
  177. title=f"Information about *{user.name}*",
  178. description=f"Here you see all details about {user.mention}",
  179. color=discord.Color.blue()
  180. )
  181. time = discord.utils.format_dt(user.created_at, "R")
  182. embed.add_field(name="Account creation date", value=time, inline=False)
  183. if len(user.roles) >= 2:
  184. embed.add_field(name="Roles", value=", ".join([role.mention for role in user.roles if role.name != "@everyone"]), inline=False)
  185. else:
  186. embed.add_field(name="Roles", value="User has no roles", inline=False)
  187. embed.add_field(name="Server join date", value=discord.utils.format_dt(user.joined_at, "R"), inline=False)
  188. embed.add_field(name="User ID", value=user.id)
  189. embed.set_thumbnail(url=user.display_avatar.url)
  190. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  191. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  192. await ctx.respond(embed=embed)
  193. #---------------------------------#
  194. #_________________________________#
  195. #BAN SYSTEM
  196. #---------------------------------#
  197. ##Ban
  198. @bot.slash_command(name="ban", description="Ban a user from this Server")
  199. async def ban(
  200. ctx,
  201. user: Option(discord.User, description = "Select User", required=True), # type: ignore
  202. reason: Option(str, description = "Reason for the ban", default="No reason provided") # type: ignore
  203. ):
  204. if not ctx.author.guild_permissions.ban_members:
  205. await ctx.respond("Error: You don't have the permission to ban Members!", ephemeral=True)
  206. return
  207. if user == bot.user:
  208. await ctx.respond("Error: I can't ban myself!", ephemeral=True)
  209. return
  210. if user == ctx.author:
  211. await ctx.respond("Error: You can't ban yourself!", ephemeral=True)
  212. return
  213. channel= discord.utils.get(ctx.guild.channels, id = int(channel_banlog))
  214. embed = discord.Embed(
  215. title=f"Ban of **{user.name}**",
  216. description=f"User {user.mention} has been banned from the Server",
  217. color=discord.Color.red()
  218. )
  219. time = discord.utils.format_dt(datetime.now(), "f")
  220. embed.add_field(name="Ban Date", value=time, inline=False)
  221. embed.add_field(name="Moderator", value=f"{ctx.author}", inline=False)
  222. embed.add_field(name="Reason", value=reason, inline=False)
  223. embed.add_field(name="User ID", value=user.id)
  224. embed.set_thumbnail(url=user.display_avatar.url)
  225. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  226. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  227. try:
  228. await ctx.guild.ban(user, reason=reason)
  229. await ctx.respond(f"User {user.mention} has been banned from this Server!", ephemeral=True)
  230. await channel.send(embed=embed)
  231. cursor.execute(
  232. "INSERT INTO Bans (userid, username, moderatorname, reason) VALUES (%s, %s, %s, %s)",
  233. (user.id, str(user), str(ctx.author), reason)
  234. )
  235. conn.commit()
  236. except discord.Forbidden:
  237. await ctx.respond("Error: I don't have permission to ban this user.", ephemeral=True)
  238. except discord.HTTPException as e:
  239. await ctx.respond(f"Error: Could not ban User {user.mention}. Reason: {e}", ephemeral=True)
  240. except Exception as e:
  241. await ctx.respond(f"Unexpected error: {e}", ephemeral=True)
  242. #---------------------------------#
  243. #Unban
  244. @bot.slash_command(name="unban", description="Unban a user from this Server")
  245. async def unban(
  246. ctx,
  247. user: Option(discord.User, description = "Insert User ID", required=True), # type: ignore
  248. reason: Option(str, description = "Reason for the unbanning", default="No reason provided") # type: ignore
  249. ):
  250. if not ctx.author.guild_permissions.ban_members:
  251. await ctx.respond("Error: You don't have the permission to unban Members!", ephemeral=True)
  252. return
  253. if user == bot.user:
  254. await ctx.respond("Error: I can't unban myself!", ephemeral=True)
  255. return
  256. if user == ctx.author:
  257. await ctx.respond("Error: You can't unban yourself!", ephemeral=True)
  258. return
  259. if user in ctx.guild.members:
  260. await ctx.respond("Error: This user is not banned!", ephemeral=True)
  261. return
  262. channel= discord.utils.get(ctx.guild.channels, id = int(channel_banlog))
  263. embed = discord.Embed(
  264. title=f"Unban of **{user.name}**",
  265. description=f"User {user.mention} was unbanned from this server.",
  266. color=discord.Color.green()
  267. )
  268. time = discord.utils.format_dt(datetime.now(), "f")
  269. embed.add_field(name="Unban Date", value=time, inline=False)
  270. embed.add_field(name="Moderator", value=f"{ctx.author}", inline=False)
  271. embed.add_field(name="Reason", value=reason, inline=False)
  272. embed.add_field(name="User ID", value=user.id)
  273. embed.set_thumbnail(url=user.display_avatar.url)
  274. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  275. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  276. try:
  277. await ctx.guild.unban(user, reason=reason)
  278. await ctx.respond(f"User {user.mention} is now unbanned!", ephemeral=True)
  279. await channel.send(embed=embed)
  280. cursor.execute(
  281. "INSERT INTO Unbans (userid, username, moderatorname, reason) VALUES (%s, %s, %s, %s)",
  282. (user.id, str(user), str(ctx.author), reason)
  283. )
  284. conn.commit()
  285. except discord.Forbidden:
  286. await ctx.respond("Error: I don't have permission to unban this user.", ephemeral=True)
  287. except discord.HTTPException as e:
  288. await ctx.respond(f"Error: Could not unban User {user.mention}. Reason: {e}", ephemeral=True)
  289. except Exception as e:
  290. await ctx.respond(f"Unexpected error: {e}", ephemeral=True)
  291. #---------------------------------#
  292. #_________________________________#
  293. #---------------------------------#
  294. #Kick
  295. @bot.slash_command(name="kick", description="Kick a user from this Server")
  296. async def kick(
  297. ctx,
  298. user: Option(discord.User, description = "Select User", required=True), # type: ignore
  299. reason: Option(str, description = "Reason for the ban", default="No reason provided") # type: ignore
  300. ):
  301. if not ctx.author.guild_permissions.kick_members:
  302. await ctx.respond("Error: You don't have the permission to kick Members!", ephemeral=True)
  303. return
  304. if user == bot.user:
  305. await ctx.respond("Error: I can't kick myself!", ephemeral=True)
  306. return
  307. if user == ctx.author:
  308. await ctx.respond("Error: You can't kick yourself!", ephemeral=True)
  309. return
  310. try:
  311. await ctx.guild.kick(user, reason=reason)
  312. await ctx.respond(f"User {user.mention} has been kicked from this Server!", ephemeral=True)
  313. cursor.execute(
  314. "INSERT INTO Kick (userid, username, moderatorname, reason) VALUES (%s, %s, %s, %s)",
  315. (int(user.id), str(user), str(ctx.author), reason)
  316. )
  317. conn.commit()
  318. except discord.Forbidden:
  319. await ctx.respond("Error: I don't have permission to kick this user.", ephemeral=True)
  320. except discord.HTTPException as e:
  321. await ctx.respond(f"Error: Could not kick User {user.mention}. Reason: {e}", ephemeral=True)
  322. except Exception as e:
  323. await ctx.respond(f"Unexpected error: {e}", ephemeral=True)
  324. #---------------------------------#
  325. #---------------------------------#
  326. #Warn
  327. @bot.slash_command(name="warn", description="Warn a user from this Server")
  328. async def warn(
  329. ctx,
  330. user: Option(discord.User, required=True), # type: ignore
  331. reason: Option(str, default="No reason provided") # type: ignore
  332. ):
  333. await ctx.defer(ephemeral=True)
  334. if not ctx.author.guild_permissions.kick_members:
  335. await ctx.followup.send("No permission.", ephemeral=True)
  336. return
  337. if user in (bot.user, ctx.author):
  338. await ctx.followup.send("Invalid target.", ephemeral=True)
  339. return
  340. cursor.execute(
  341. "INSERT INTO Warns (userid, username, moderatorname, reason) VALUES (%s, %s, %s, %s)",
  342. (user.id, str(user), str(ctx.author), reason)
  343. )
  344. conn.commit()
  345. await ctx.followup.send(
  346. f"User {user.mention} has been warned for: {reason}",
  347. ephemeral=True
  348. )
  349. #---------------------------------#
  350. #Modinfo
  351. @bot.slash_command(name="modinfo", description="Shows the moderative history of a user from this Server")
  352. async def modinfo(
  353. ctx,
  354. user: Option(discord.User, required=True) # type: ignore
  355. ):
  356. await ctx.defer(ephemeral=False)
  357. if not ctx.author.guild_permissions.kick_members:
  358. await ctx.followup.send("No permission.", ephemeral=True)
  359. return
  360. embed = discord.Embed(
  361. title=f"__Moderation History for {user.name}__",
  362. color=discord.Color.orange()
  363. )
  364. cursor.execute(
  365. "SELECT moderatorname, reason, date FROM Warns WHERE userid = %s",
  366. (user.id,)
  367. )
  368. warns = cursor.fetchall()
  369. if warns:
  370. for moderatorname, reason, date in warns:
  371. embed.add_field(
  372. name=f"Warned by {moderatorname} on {date.strftime('%Y-%m-%d %H:%M:%S')}",
  373. value=f"Reason: {reason}",
  374. inline=False
  375. )
  376. cursor.execute(
  377. "SELECT moderatorname, reason, date FROM Kick WHERE userid = %s",
  378. (user.id,)
  379. )
  380. kicks = cursor.fetchall()
  381. if kicks:
  382. for moderatorname, reason, date in kicks:
  383. embed.add_field(
  384. name=f"Kicked by {moderatorname} on {date.strftime('%Y-%m-%d %H:%M:%S')}",
  385. value=f"Reason: {reason}",
  386. inline=False
  387. )
  388. cursor.execute(
  389. "SELECT moderatorname, reason, date FROM Bans WHERE userid = %s",
  390. (user.id,)
  391. )
  392. bans = cursor.fetchall()
  393. if bans:
  394. for moderatorname, reason, date in bans:
  395. embed.add_field(
  396. name=f"Banned by {moderatorname} on {date.strftime('%Y-%m-%d %H:%M:%S')}",
  397. value=f"Reason: {reason}",
  398. inline=False
  399. )
  400. cursor.execute(
  401. "SELECT moderatorname, reason, date FROM Unbans WHERE userid = %s",
  402. (user.id,)
  403. )
  404. unbans = cursor.fetchall()
  405. if unbans:
  406. for moderatorname, reason, date in unbans:
  407. embed.add_field(
  408. name=f"Unbanned by {moderatorname} on {date.strftime('%Y-%m-%d %H:%M:%S')}",
  409. value=f"Reason: {reason}",
  410. inline=False
  411. )
  412. if not warns and not kicks and not bans and not unbans:
  413. await ctx.followup.send(f"User {user.mention} has no moderation history.", ephemeral=True)
  414. return
  415. embed.set_thumbnail(url=user.display_avatar.url)
  416. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  417. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  418. await ctx.followup.send(embed=embed, ephemeral=False)
  419. #_________________________________#
  420. ## Reaction role system
  421. #---------------------------------#
  422. #reaction role verfiy
  423. class PersistentRoleView(discord.ui.View):
  424. def __init__(self):
  425. super().__init__(timeout=None)
  426. @discord.ui.button(
  427. label=label_rules,
  428. style=discord.ButtonStyle.success,
  429. emoji="✅",
  430. custom_id="persistent_view:role_verify"
  431. )
  432. async def verify_callback(self, button: discord.ui.Button, interaction: discord.Interaction):
  433. role = interaction.guild.get_role(int(role_rules))
  434. if role is None:
  435. await interaction.response.send_message("Error: The konfigured role was not found", ephemeral=True)
  436. return
  437. if role in interaction.user.roles:
  438. await interaction.user.remove_roles(role)
  439. await interaction.response.send_message(f"Rolle **{role.name}** wurde entfernt.", ephemeral=True)
  440. else:
  441. await interaction.user.add_roles(role)
  442. await interaction.response.send_message(f"Du hast die Rolle **{role.name}** erhalten!", ephemeral=True)
  443. @bot.slash_command(name="verify_message", description="Send the reactionrole message")
  444. async def setup_rr(
  445. ctx: discord.ApplicationContext,
  446. channel: discord.TextChannel,
  447. title: str,
  448. description: str
  449. ):
  450. if not ctx.author.guild_permissions.administrator:
  451. await ctx.respond("You dont have the permissions to do that..", ephemeral=True)
  452. return
  453. embed = discord.Embed(
  454. title=title,
  455. description=f"{description}\n\nViel Spass auf dem Server!",
  456. color=discord.Color.red()
  457. )
  458. embed.set_image(url="https://i.imgur.com/FoF791J.png")
  459. try:
  460. await channel.send(embed=embed, view=PersistentRoleView())
  461. await ctx.respond(f"Message was succesfully sent in {channel.mention}!", ephemeral=True)
  462. except discord.Forbidden:
  463. await ctx.respond("I dont have permissions to write in this channel", ephemeral=True)
  464. #---------------------------------#
  465. #_________________________________#
  466. #_________________________________#
  467. ## Help System
  468. #---------------------------------#
  469. #How to team
  470. @bot.slash_command(name="how_to_team", description= "Get Infos")
  471. async def how_to_team(
  472. ctx,
  473. ):
  474. server = ctx.guild
  475. embed = discord.Embed(
  476. title=f"__How to join the Team on {server.name}__",
  477. description=f"If you want to join the Serverteam open a ticket in #ticket.",
  478. color=discord.Color.yellow()
  479. )
  480. embed.set_thumbnail(url=server.icon)
  481. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  482. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  483. await ctx.respond(embed=embed)
  484. #---------------------------------#
  485. #How to start
  486. @bot.slash_command(name="how_to_start", description= "Get Infos")
  487. async def how_to_start(
  488. ctx,
  489. ):
  490. server = ctx.guild
  491. embed = discord.Embed(
  492. title=f"__How to start__",
  493. description=f"Hallo {ctx.author.mention}, um auf unserem Server spielen zu können, ließ dir zuerst das Regelwerk in in #regelwerk durch. Um einem Department beizutreten wähle in #how-to-start eine Einweisungsrolle aus. Melde dich anschließend für eine Einweisung an. **Wichtig: gehe erst krz vor der Einweisung auf den Server!**",
  494. color=discord.Color.yellow()
  495. )
  496. embed.set_thumbnail(url=server.icon)
  497. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  498. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  499. await ctx.respond(embed=embed)
  500. #---------------------------------#
  501. #Help_cache
  502. @bot.slash_command(name="help_cache", description= "Get Infos")
  503. async def help_cache(
  504. ctx,
  505. ):
  506. server = ctx.guild
  507. embed = discord.Embed(
  508. title=f"__How to clear your game cache__",
  509. description=f"Follow the follwing steps to clear your game cache:",
  510. color=discord.Color.yellow()
  511. )
  512. embed.add_field(name="Close Game", value="Close FiveM completely", inline=False)
  513. embed.add_field(name="Press keys", value="Win + R", inline=False)
  514. embed.add_field(name="Go to the folder", value="\Local\FiveM\FiveM.app\data", inline=False)
  515. embed.add_field(name="Delete the folders", value="cache, server-cache, server-cache-priv", inline=False)
  516. embed.add_field(name="Restart Game", value="Restart the game and download the resources again.", inline=False)
  517. embed.set_thumbnail(url=server.icon)
  518. embed.set_author(name="VicePD", icon_url="https://i.imgur.com/6QteFrg.png")
  519. embed.set_footer(text="VicePD - Bot | Made by BaumSplitter41")
  520. await ctx.respond(embed=embed)
  521. #---------------------------------#
  522. #_________________________________#
  523. #---------------------------------#
  524. #Run function
  525. load_extensions()
  526. bot.run(token)
  527. #---------------------------------#