1- '''
2- Command creator for the discord.py Bot.
3-
4- © by ElBe.
5-
6- Version: 0. 1.5
7-
8- NOTE: Only execute once.
9- '''
10-
11- #Imports
12- import command_creator
13-
14- #Stop command
15- json = {
16- 'name' : 'stop' ,
17- 'type' : 1 ,
18- 'description' : 'Stops the bot.'
19- }
20- command_creator .create_command (json )
21-
22- #Help command
23- json = {
24- 'name' : 'help' ,
25- 'type' : 1 ,
26- 'description' : 'Shows you help about the bot.'
27- }
28- command_creator .create_command (json )
29-
30- #Ping command
31- json = {
32- 'name' : 'ping' ,
33- 'type' : 1 ,
34- 'description' : 'Shows you the ping of the bot in ms.'
35- }
36- command_creator .create_command (json )
37-
38- #Info command
39- json = {
40- 'name' : 'info' ,
41- 'type' : 1 ,
42- 'description' : 'Shows you information about the bot.'
43- }
44- command_creator .create_command (json )
45-
46- #Kick command
47- json = {
48- 'name' : 'kick' ,
49- 'type' : 1 ,
50- 'description' : 'Kicks a member from the server.' ,
51- "options" : [
52- {
53- "name" : "member" ,
54- "description" : "The member to kick." ,
55- "type" : 6 ,
56- "required" : True
57- },
58- {
59- "name" : "reason" ,
60- "description" : "Reason for the kick." ,
61- "type" : 3 ,
62- "required" : False
63- }
64- ]
65- }
66- command_creator .create_command (json )
67-
68- #Ban command
69- json = {
70- 'name' : 'ban' ,
71- 'type' : 1 ,
72- 'description' : 'Bans a member from the server.' ,
73- "options" : [
74- {
75- "name" : "member" ,
76- "description" : "The member to ban." ,
77- "type" : 6 ,
78- "required" : True
79- },
80- {
81- "name" : "reason" ,
82- "description" : "Reason for the ban." ,
83- "type" : 3 ,
84- "required" : False
85- }
86- ]
87- }
88- command_creator .create_command (json )
89-
90- #Unban command
91- json = {
92- 'name' : 'unban' ,
93- 'type' : 1 ,
94- 'description' : 'Unbans a member from the server.' ,
95- "options" : [
96- {
97- "name" : "member" ,
98- "description" : "The member to unban." ,
99- "type" : 6 ,
100- "required" : True
101- },
102- {
103- "name" : "reason" ,
104- "description" : "Reason for the unban." ,
105- "type" : 3 ,
106- "required" : False
107- }
108- ]
109- }
110- command_creator .create_command (json )
1+ '''
2+ Command creator for the discord.py Bot.
3+
4+ © by ElBe.
5+
6+ Version: 1.5
7+
8+ NOTE: Only execute once.
9+ '''
10+
11+ #Imports
12+ import command_creator
13+
14+ #Stop command
15+ json = {
16+ 'name' : 'stop' ,
17+ 'type' : 1 ,
18+ 'description' : 'Stops the bot.'
19+ }
20+ command_creator .create_command (json )
21+
22+ #Help command
23+ json = {
24+ 'name' : 'help' ,
25+ 'type' : 1 ,
26+ 'description' : 'Shows you help about the bot.'
27+ }
28+ command_creator .create_command (json )
29+
30+ #Ping command
31+ json = {
32+ 'name' : 'ping' ,
33+ 'type' : 1 ,
34+ 'description' : 'Shows you the ping of the bot in ms.'
35+ }
36+ command_creator .create_command (json )
37+
38+ #Info command
39+ json = {
40+ 'name' : 'info' ,
41+ 'type' : 1 ,
42+ 'description' : 'Shows you information about the bot.'
43+ }
44+ command_creator .create_command (json )
45+
46+ #Kick command
47+ json = {
48+ 'name' : 'kick' ,
49+ 'type' : 1 ,
50+ 'description' : 'Kicks a member from the server.' ,
51+ "options" : [
52+ {
53+ "name" : "member" ,
54+ "description" : "The member to kick." ,
55+ "type" : 6 ,
56+ "required" : True
57+ },
58+ {
59+ "name" : "reason" ,
60+ "description" : "Reason for the kick." ,
61+ "type" : 3 ,
62+ "required" : False
63+ }
64+ ]
65+ }
66+ command_creator .create_command (json )
67+
68+ #Ban command
69+ json = {
70+ 'name' : 'ban' ,
71+ 'type' : 1 ,
72+ 'description' : 'Bans a member from the server.' ,
73+ "options" : [
74+ {
75+ "name" : "member" ,
76+ "description" : "The member to ban." ,
77+ "type" : 6 ,
78+ "required" : True
79+ },
80+ {
81+ "name" : "reason" ,
82+ "description" : "Reason for the ban." ,
83+ "type" : 3 ,
84+ "required" : False
85+ }
86+ ]
87+ }
88+ command_creator .create_command (json )
89+
90+ #Unban command
91+ json = {
92+ 'name' : 'unban' ,
93+ 'type' : 1 ,
94+ 'description' : 'Unbans a member from the server.' ,
95+ "options" : [
96+ {
97+ "name" : "member" ,
98+ "description" : "The member to unban." ,
99+ "type" : 6 ,
100+ "required" : True
101+ },
102+ {
103+ "name" : "reason" ,
104+ "description" : "Reason for the unban." ,
105+ "type" : 3 ,
106+ "required" : False
107+ }
108+ ]
109+ }
110+ command_creator .create_command (json )
0 commit comments