Removed username field from config, as it wasn't necessary
This commit is contained in:
parent
b2f360c9ff
commit
967f3a7a9a
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue