-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
734670b
commit 0ad7981
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
from dotenv import load_dotenv | ||
from discord.ext import commands | ||
|
||
load_dotenv(".env") | ||
bot = commands.Bot(command_prefix='?') | ||
|
||
bot.lavalink_nodes = [ | ||
{"host": "losingtime.dpaste.org", "port": 2124, "password": "SleepingOnTrains"}, | ||
# Can have multiple nodes here | ||
] | ||
|
||
# If you want to use spotify search | ||
bot.spotify_credentials = { | ||
'client_id': 'CLIENT_ID_HERE', | ||
'client_secret': 'CLIENT_SECRET_HERE' | ||
} | ||
|
||
@bot.event | ||
async def on_ready(): | ||
print(f"{bot.user} is ready") | ||
|
||
bot.load_extension('dismusic') | ||
bot.load_extension('jishaku') | ||
bot.run(os.getenv("TOKEN")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
python-dotenv | ||
jishaku |