Add string customization and example.env
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const printf=require('printf');
|
||||
const AudioQueue=require('../../AudioQueue.js')
|
||||
|
||||
module.exports = function (bot, api) {
|
||||
@@ -20,9 +21,9 @@ module.exports = function (bot, api) {
|
||||
let username = newState.member.displayName;
|
||||
let str = "";
|
||||
if (!joined) {
|
||||
str = username + " left the channel";
|
||||
str = printf(api.strings.USER_LEFT, username);
|
||||
} else {
|
||||
str = username + " joined the channel";
|
||||
str = printf(api.strings.USER_JOINED, username);
|
||||
}
|
||||
api.queue.add(__dirname + "/sysmsg.wav");
|
||||
api.speak(channel, str);
|
||||
|
Reference in New Issue
Block a user