fix channel_text id env variable
This commit is contained in:
parent
b469ae4e9b
commit
6fbb63aea2
1 changed files with 5 additions and 5 deletions
10
main.py
10
main.py
|
@ -9,10 +9,10 @@ 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 = config['channel_test']
|
text_channel_id = os.environ['channel_text']
|
||||||
|
|
||||||
# Configure the bot
|
# Configure the bot
|
||||||
description = '''Radiobot.'''
|
description = '''Radiobot'''
|
||||||
bot = commands.Bot(command_prefix='!', description=description)
|
bot = commands.Bot(command_prefix='!', description=description)
|
||||||
|
|
||||||
# Initialize opus
|
# Initialize opus
|
||||||
|
@ -34,10 +34,10 @@ async def on_ready():
|
||||||
# get channels
|
# get channels
|
||||||
voice_channel = bot.get_channel(voice_channel_id)
|
voice_channel = bot.get_channel(voice_channel_id)
|
||||||
text_channel = bot.get_channel(text_channel_id)
|
text_channel = bot.get_channel(text_channel_id)
|
||||||
if not v_channel:
|
if not voice_channel:
|
||||||
print("No voice channel with that ID found!")
|
print("No voice channel " + voice_channel_id + " found!")
|
||||||
if not text_channel:
|
if not text_channel:
|
||||||
print("No text channel with that ID found!")
|
print("No text channel " + text_channel_id + " found!")
|
||||||
#voice_client = await bot.join_voice_channel(v_channel)
|
#voice_client = await bot.join_voice_channel(v_channel)
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
|
|
Loading…
Reference in a new issue