Removed username field from config, as it wasn't necessary

This commit is contained in:
Matthieu Grieger 2014-09-17 12:06:33 -07:00
parent b2f360c9ff
commit 967f3a7a9a
2 changed files with 2 additions and 6 deletions

View file

@ -12,10 +12,6 @@ local config = {}
-- GENERAL CONFIGURATION
-------------------------
-- Bot username
-- DEFAULT VALUE: "MumbleDJ"
config.BOT_USERNAME = "MumbleDJ"
-- Default channel
-- DEFAULT VALUE: "Bot Testing"
config.DEFAULT_CHANNEL = "Bot Testing"

View file

@ -9,8 +9,8 @@ local song_queue = require("song_queue")
local skippers = {}
function piepan.onConnect()
print("MumbleDJ has connected to the server!")
local user = piepan.users["MumbleDJ"]
print(piepan.me.name .. " has connected to the server!")
local user = piepan.users[piepan.me.name]
local channel = user.channel("Bot Testing")
piepan.me:moveTo(channel)
end