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
|
-- GENERAL CONFIGURATION
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
-- Bot username
|
|
||||||
-- DEFAULT VALUE: "MumbleDJ"
|
|
||||||
config.BOT_USERNAME = "MumbleDJ"
|
|
||||||
|
|
||||||
-- Default channel
|
-- Default channel
|
||||||
-- DEFAULT VALUE: "Bot Testing"
|
-- DEFAULT VALUE: "Bot Testing"
|
||||||
config.DEFAULT_CHANNEL = "Bot Testing"
|
config.DEFAULT_CHANNEL = "Bot Testing"
|
||||||
|
|
|
@ -9,8 +9,8 @@ local song_queue = require("song_queue")
|
||||||
local skippers = {}
|
local skippers = {}
|
||||||
|
|
||||||
function piepan.onConnect()
|
function piepan.onConnect()
|
||||||
print("MumbleDJ has connected to the server!")
|
print(piepan.me.name .. " has connected to the server!")
|
||||||
local user = piepan.users["MumbleDJ"]
|
local user = piepan.users[piepan.me.name]
|
||||||
local channel = user.channel("Bot Testing")
|
local channel = user.channel("Bot Testing")
|
||||||
piepan.me:moveTo(channel)
|
piepan.me:moveTo(channel)
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue