@@ -22,7 +22,7 @@ async def status_task():
2222 await asyncio .sleep (10 )
2323 await client .change_presence (game = Game (name = 'with Krypton' ))
2424 await asyncio .sleep (10 )
25- await client .change_presence (game = Game (name = 'k> help' ))
25+ await client .change_presence (game = Game (name = 'YOUR_PREFIX_HERE help' ))
2626 await asyncio .sleep (10 )
2727 await client .change_presence (game = Game (name = 'with Humans' ))
2828 await asyncio .sleep (10 )
@@ -55,7 +55,7 @@ async def info(context):
5555 e .set_author (name = "Bot Informations" )
5656 e .add_field (name = "Owner:" , value = "Krypton#1337" , inline = True )
5757 e .add_field (name = "Python Version:" , value = "{0}" .format (python_version ()), inline = True )
58- e .add_field (name = "Prefix:" , value = "k> " , inline = False )
58+ e .add_field (name = "Prefix:" , value = "YOUR_PREFIX_HERE " , inline = False )
5959 e .set_footer (text = "Requested by {0}" .format (context .message .author ))
6060 await client .say (embed = e )
6161 await client .send_message (context .message .channel , embed = embed )
@@ -378,37 +378,23 @@ async def help(context):
378378 await client .say (embed = embed )
379379 else :
380380 embed = discord .Embed (title = 'Bot' , description = 'List of commands are:' , color = 0x00FF00 )
381- embed .add_field (name = 'Invite - Invite the bot' , value = 'Usage: k> invite' , inline = False )
382- embed .add_field (name = 'Server - Join my own server' , value = 'Usage: k> server' , inline = False )
383- embed .add_field (name = 'Poll - Create a poll for your users' , value = 'Usage: k> poll <idea>' , inline = False )
384- embed .add_field (name = '8Ball - Answers to your questions' , value = 'Usage: k> 8ball <question>' , inline = False )
385- embed .add_field (name = 'Bitcoin - Shows the currency of the bitcoin' , value = 'Usage: k> bitcoin' , inline = False )
386- embed .add_field (name = 'Info - Gives infos about the bot' , value = 'Usage: k> info' , inline = False )
387- embed .add_field (name = 'Shutdown - Shutdowns the bot [OWNER]' , value = 'Usage: k> shutdown' , inline = False )
388- embed .add_field (name = 'Say - I send a message of your choice [OWNER]' , value = 'Usage: k> say <message>' , inline = False )
389- embed .add_field (name = 'Embed - I send a embed message of your choice [OWNER]' , value = 'Usage: k> embed <message>' , inline = False )
390- embed .add_field (name = 'Kick - Kick a user' , value = 'Usage: k> kick <user> <reason>' , inline = False )
391- embed .add_field (name = 'Ban - Ban a user' , value = 'Usage: k> ban <user> <reason>' , inline = False )
392- embed .add_field (name = 'Warn - Warn a user in private messages' , value = 'Usage: k> warn <user> <reason>' , inline = False )
393- embed .add_field (name = 'Unban - Unban a user' , value = 'Usage: k> unban <user>' , inline = False )
394- embed .add_field (name = 'Purge - Remove an amount of messages' , value = 'Usage: k> purge <number>' , inline = False )
395- embed .add_field (name = 'Help - Gives this menu' , value = 'Usage: k> help' , inline = False )
381+ embed .add_field (name = 'Invite - Invite the bot' , value = 'Usage: YOUR_PREFIX_HERE invite' , inline = False )
382+ embed .add_field (name = 'Server - Join my own server' , value = 'Usage: YOUR_PREFIX_HERE server' , inline = False )
383+ embed .add_field (name = 'Poll - Create a poll for your users' , value = 'Usage: YOUR_PREFIX_HERE poll <idea>' , inline = False )
384+ embed .add_field (name = '8Ball - Answers to your questions' , value = 'Usage: YOUR_PREFIX_HERE 8ball <question>' , inline = False )
385+ embed .add_field (name = 'Bitcoin - Shows the currency of the bitcoin' , value = 'Usage: YOUR_PREFIX_HERE bitcoin' , inline = False )
386+ embed .add_field (name = 'Info - Gives infos about the bot' , value = 'Usage: YOUR_PREFIX_HERE info' , inline = False )
387+ embed .add_field (name = 'Shutdown - Shutdowns the bot [OWNER]' , value = 'Usage: YOUR_PREFIX_HERE shutdown' , inline = False )
388+ embed .add_field (name = 'Say - I send a message of your choice [OWNER]' , value = 'Usage: YOUR_PREFIX_HERE say <message>' , inline = False )
389+ embed .add_field (name = 'Embed - I send a embed message of your choice [OWNER]' , value = 'Usage: YOUR_PREFIX_HERE embed <message>' , inline = False )
390+ embed .add_field (name = 'Kick - Kick a user' , value = 'Usage: YOUR_PREFIX_HERE kick <user> <reason>' , inline = False )
391+ embed .add_field (name = 'Ban - Ban a user' , value = 'Usage: YOUR_PREFIX_HERE ban <user> <reason>' , inline = False )
392+ embed .add_field (name = 'Warn - Warn a user in private messages' , value = 'Usage: YOUR_PREFIX_HERE warn <user> <reason>' , inline = False )
393+ embed .add_field (name = 'Unban - Unban a user' , value = 'Usage: YOUR_PREFIX_HERE unban <user>' , inline = False )
394+ embed .add_field (name = 'Purge - Remove an amount of messages' , value = 'Usage: YOUR_PREFIX_HERE purge <number>' , inline = False )
395+ embed .add_field (name = 'Help - Gives this menu' , value = 'Usage: YOUR_PREFIX_HERE help' , inline = False )
396396 await client .send_message (context .message .channel , embed = embed )
397397
398- @client .event
399- async def on_message (message ):
400- contents = message .content .split (' ' )
401- for word in contents :
402- if word .lower () in BLOCKED_WORDS :
403- if not message .author .id in UNBLOCKED_USERS :
404- await client .delete_message (message )
405- embed = discord .Embed (title = 'Error!' , description = 'You don\' t have the permission to send this word.' , color = 0x00FF00 )
406- message = await client .send_message (message .channel , embed = embed )
407- await asyncio .sleep (3 )
408- await client .delete_message (message )
409-
410- await client .process_commands (message )
411-
412398@client .event
413399async def on_command_error (error , context ):
414400 if isinstance (error , commands .CommandOnCooldown ):
@@ -421,67 +407,67 @@ async def on_command_error(error, context):
421407
422408@softban .error
423409async def softban_error (error , context ):
424- embed = discord .Embed (title = '**Command:** k> softban' , description = '**Description:** Softbans a member \n **Cooldown:** 5 second(s) \n **Usage:** k> softban [user] [reason] \n **Example:** k> softban @RandomUser Get out!' , color = 0x00FF00 )
410+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE softban' , description = '**Description:** Softbans a member \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE softban [user] [reason] \n **Example:** YOUR_PREFIX_HERE softban @RandomUser Get out!' , color = 0x00FF00 )
425411 await client .send_message (context .message .channel , embed = embed )
426412
427413@ban .error
428414async def ban_error (error , context ):
429- embed = discord .Embed (title = '**Command:** k> ban' , description = '**Description:** Bans a member \n **Cooldown:** 5 second(s) \n **Usage:** k> ban [user] [reason] \n **Example:** k> ban @RandomUser Get out!' , color = 0x00FF00 )
415+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE ban' , description = '**Description:** Bans a member \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE ban [user] [reason] \n **Example:** YOUR_PREFIX_HERE ban @RandomUser Get out!' , color = 0x00FF00 )
430416 await client .send_message (context .message .channel , embed = embed )
431417
432418@poll .error
433419async def poll_error (error , context ):
434- embed = discord .Embed (title = '**Command:** k> poll' , description = '**Description:** Create a pool to vote \n **Cooldown:** 5 second(s) \n **Usage:** k> poll [idea] \n **Example:** k> poll Add new emojis!' , color = 0x00FF00 )
420+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE poll' , description = '**Description:** Create a pool to vote \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE poll [idea] \n **Example:** YOUR_PREFIX_HERE poll Add new emojis!' , color = 0x00FF00 )
435421 await client .send_message (context .message .channel , embed = embed )
436422
437423@eight_ball .error
438424async def eight_ball_error (error , context ):
439- embed = discord .Embed (title = '**Command:** k> 8ball' , description = '**Description:** Get an answer to all of your questions \n **Cooldown:** 5 second(s) \n **Usage:** k> 8ball [question] \n **Example:** k> 8ball Is this bot cool?' , color = 0x00FF00 )
425+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE 8ball' , description = '**Description:** Get an answer to all of your questions \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE 8ball [question] \n **Example:** YOUR_PREFIX_HERE 8ball Is this bot cool?' , color = 0x00FF00 )
440426 await client .send_message (context .message .channel , embed = embed )
441427
442428@echo .error
443429async def say_error (error , context ):
444- embed = discord .Embed (title = '**Command:** k> say' ,
445- description = '**Description:** I say what you say \n **Cooldown:** 0 second(s) \n **Usage:** k> say [message] \n **Example:** k> say Hello!!' ,
430+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE say' ,
431+ description = '**Description:** I say what you say \n **Cooldown:** 0 second(s) \n **Usage:** YOUR_PREFIX_HERE say [message] \n **Example:** YOUR_PREFIX_HERE say Hello!!' ,
446432 color = 0x00FF00 )
447433 await client .send_message (context .message .channel , embed = embed )
448434
449435
450436@embed .error
451437async def embed_error (error , context ):
452- embed = discord .Embed (title = '**Command:** k> embed' ,
453- description = '**Description:** I say what you say as embed message \n **Cooldown:** 0 second(s) \n **Usage:** k> embed [message] \n **Example:** k> embed Hello!!' ,
438+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE embed' ,
439+ description = '**Description:** I say what you say as embed message \n **Cooldown:** 0 second(s) \n **Usage:** YOUR_PREFIX_HERE embed [message] \n **Example:** YOUR_PREFIX_HERE embed Hello!!' ,
454440 color = 0x00FF00 )
455441 await client .send_message (context .message .channel , embed = embed )
456442
457443
458444@kick .error
459445async def kick_error (error , context ):
460- embed = discord .Embed (title = '**Command:** k> kick' ,
461- description = '**Description:** Kicks a member \n **Cooldown:** 5 second(s) \n **Usage:** k> kick [user] [reason] \n **Example:** k> kick @RandomUser Rejoin when you\' ll be smarter, like me!' ,
446+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE kick' ,
447+ description = '**Description:** Kicks a member \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE kick [user] [reason] \n **Example:** YOUR_PREFIX_HERE kick @RandomUser Rejoin when you\' ll be smarter, like me!' ,
462448 color = 0x00FF00 )
463449 await client .send_message (context .message .channel , embed = embed )
464450
465451
466452@unban .error
467453async def unban_error (error , context ):
468- embed = discord .Embed (title = '**Command:** k> unban' ,
469- description = '**Description:** Unbans a member \n **Cooldown:** 3 second(s) \n **Usage:** k> unban [user] \n **Example:** k> unban @RandomUser' ,
454+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE unban' ,
455+ description = '**Description:** Unbans a member \n **Cooldown:** 3 second(s) \n **Usage:** YOUR_PREFIX_HERE unban [user] \n **Example:** YOUR_PREFIX_HERE unban @RandomUser' ,
470456 color = 0x00FF00 )
471457 await client .send_message (context .message .channel , embed = embed )
472458
473459@warn .error
474460async def warn_error (error , context ):
475- embed = discord .Embed (title = '**Command:** k> warn' ,
476- description = '**Description:** Warns a member \n **Cooldown:** 5 second(s) \n **Usage:** k> warn [user] [reason] \n **Example:** k> warn @RandomUser Stop the caps, thanks!' ,
461+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE warn' ,
462+ description = '**Description:** Warns a member \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE warn [user] [reason] \n **Example:** YOUR_PREFIX_HERE warn @RandomUser Stop the caps, thanks!' ,
477463 color = 0x00FF00 )
478464 await client .send_message (context .message .channel , embed = embed )
479465
480466
481467@purge .error
482468async def purge_error (error , context ):
483- embed = discord .Embed (title = '**Command:** k> purge' ,
484- description = '**Description:** Delete a certain amount of messages \n **Cooldown:** 5 second(s) \n **Usage:** k> purge [numer of messages] \n **Example:** k> purge 20' ,
469+ embed = discord .Embed (title = '**Command:** YOUR_PREFIX_HERE purge' ,
470+ description = '**Description:** Delete a certain amount of messages \n **Cooldown:** 5 second(s) \n **Usage:** YOUR_PREFIX_HERE purge [numer of messages] \n **Example:** YOUR_PREFIX_HERE purge 20' ,
485471 color = 0x00FF00 )
486472 await client .send_message (context .message .channel , embed = embed )
487473
0 commit comments