remove extra env variables
This commit is contained in:
parent
585094b818
commit
5ab98b1b0c
|
@ -1,7 +1,4 @@
|
||||||
version=0.1
|
|
||||||
token=OT..
|
token=OT..
|
||||||
channel_text=123
|
channel_text=123
|
||||||
channel_voice=456
|
channel_voice=456
|
||||||
url=http://example.net
|
url=http://example.net
|
||||||
passes=2
|
|
||||||
bitrate=48000
|
|
||||||
|
|
9
main.py
9
main.py
|
@ -9,9 +9,6 @@ import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import urllib.request as urllib2
|
import urllib.request as urllib2
|
||||||
|
|
||||||
bot_version = os.environ['version']
|
|
||||||
print('radiobot ' + bot_version + ' starting')
|
|
||||||
|
|
||||||
login_token = os.environ['token']
|
login_token = os.environ['token']
|
||||||
voice_channel_id = os.environ['channel_voice']
|
voice_channel_id = os.environ['channel_voice']
|
||||||
text_channel_id = os.environ['channel_text']
|
text_channel_id = os.environ['channel_text']
|
||||||
|
@ -21,16 +18,14 @@ source = os.environ['url']
|
||||||
description = '''Radiobot'''
|
description = '''Radiobot'''
|
||||||
bot = commands.Bot(command_prefix='!', description=description)
|
bot = commands.Bot(command_prefix='!', description=description)
|
||||||
|
|
||||||
# Initialize opus
|
|
||||||
#if not discord.opus.is_loaded():
|
|
||||||
# discord.opus.load_opus('opus')
|
|
||||||
|
|
||||||
# Initialize some global variables
|
# Initialize some global variables
|
||||||
voice_client = None
|
voice_client = None
|
||||||
text_channel = None
|
text_channel = None
|
||||||
isConnected = False
|
isConnected = False
|
||||||
encoding = 'latin1'
|
encoding = 'latin1'
|
||||||
|
bot_version = '0.2'
|
||||||
|
|
||||||
|
print('radiobot ' + bot_version + ' starting')
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
|
Loading…
Reference in a new issue