File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
14
14
Carotte is an example of discord bot using discord.py.
15
-
15
+ This bot needs Python 3.5.3 or higher.
16
16
API doc : < https://discordpy.readthedocs.io/en/latest/ >
17
17
18
18
Install discord.py :
@@ -23,4 +23,10 @@ python3 -m pip install -U discord.py
23
23
24
24
# Windows
25
25
py -3 -m pip install -U discord.py
26
- ```
26
+ ```
27
+
28
+ In order to initialize Carotte, you must load cogs using
29
+ ```
30
+ <p>load cogs_name
31
+ ```
32
+ Where ` <p> ` is your prefix and ` cogs_name ` is a valid cog's name.
Original file line number Diff line number Diff line change 5
5
6
6
def get_prefix (bot , message ):
7
7
"""A callable Prefix for our bot. This could be edited to allow per server prefixes."""
8
- prefixes = '!'
8
+ prefixes = botconfig . config [ 'prefixes' ]
9
9
return commands .when_mentioned_or (* prefixes )(bot , message )
10
10
11
11
# Define all of our cogs
Original file line number Diff line number Diff line change 1
1
config = { 'token' : 'BOT_TOKEN'
2
2
, 'invite_bot' : 'https://discordapp.com/api/oauth2/authorize?client_id=CLIENT_ID&permissions=0&scope=bot'
3
+ , 'prefixes' : '!'
3
4
}
You can’t perform that action at this time.
0 commit comments