use env variables

This commit is contained in:
Daniel afx 2022-03-24 01:45:22 +02:00
parent b847cf05b6
commit 1277e1c17b
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,4 @@
version=0.1
token=OT.. token=OT..
channel=0 channel=0
name=radiobot name=radiobot

View file

@ -1,7 +1,9 @@
import os
import discord import discord
from discord.ext.commands import Bot from discord.ext.commands import Bot
bot_version = "0.1" bot_version = os.environ['version']
bot_token = os.environ['token']
client = Bot(command_prefix="!") client = Bot(command_prefix="!")
isPlaying = False isPlaying = False
@ -32,4 +34,4 @@ class MyClient(discord.Client):
await self.voiceChannel.disconnect() await self.voiceChannel.disconnect()
client = MyClient() client = MyClient()
client.run('') # Get token for this shit client.run(bot_token) # Get token for this shit