Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Bots-Discord
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Skyler Mäntysaari
Bots-Discord
Commits
16c02b34
Commit
16c02b34
authored
6 years ago
by
Skyler Mäntysaari
Browse files
Options
Downloads
Patches
Plain Diff
Updates to files.
parent
515ede8d
Branches
Branches containing commit
Tags
backupninja_upstream/1.2.0
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
Music-bot/bot.py
+4
-4
4 additions, 4 deletions
Music-bot/bot.py
Music-bot/tokens.ini
+3
-0
3 additions, 0 deletions
Music-bot/tokens.ini
with
9 additions
and
4 deletions
.gitignore
+
2
−
0
View file @
16c02b34
...
...
@@ -5,3 +5,5 @@ __pycache__/*
# Idea files
.idea/*
# Secret files
*/tokens.ini
This diff is collapsed.
Click to expand it.
Music-bot/bot.py
+
4
−
4
View file @
16c02b34
...
...
@@ -12,7 +12,7 @@ def get_prefix(bot, message):
return
commands
.
when_mentioned_or
(
*
prefixes
)(
bot
,
message
)
initial_extensions
=
[
'
cogs.meta
'
,
'
cogs.owner
'
,
'
cogs.music
'
,
'
cogs.error_handler
'
]
initial_extensions
=
[
'
cogs.meta
'
,
'
cogs.owner
'
,
'
cogs.music
'
,
'
cogs.error_handler
'
,
'
jishaku
'
]
bot
=
commands
.
Bot
(
command_prefix
=
get_prefix
,
description
=
"
This is a multi-purpose bot
"
)
...
...
@@ -37,7 +37,7 @@ if __name__ == '__main__':
except
:
print
(
f
'
Failed to load extension
{
extension
}
.
'
,
file
=
sys
.
stderr
)
traceback
.
print_exc
()
bot
.
run
(
dev_token
)
#
bot.run(dev_token)
#
#
bot.run(production_token)
bot
.
run
(
production_token
)
This diff is collapsed.
Click to expand it.
Music-bot/tokens.ini
0 → 100644
+
3
−
0
View file @
16c02b34
[token]
dev
=
NDQwNzkwMjIyMzQ3ODI5MjU4.DiBAVw.i0-6R-dh05PMbtPYSDqMcZ3_9rI
prod
=
NDYzNDg0MzA2NzA3MTg1NjY0.Dh2lcA.cqtaKivtPC2WyjdaDtZjqP9D_M8
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment