typescript schmypescript
This commit is contained in:
12
dist/clients/irc/motd.js
vendored
Normal file
12
dist/clients/irc/motd.js
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
export default (bot) => {
|
||||
bot._cmd.set("372", (msg) => {
|
||||
bot.server.motd += `${msg.params[1]}\n`;
|
||||
});
|
||||
bot._cmd.set("375", (msg) => {
|
||||
bot.server.motd = `${msg.params[1]}\n`;
|
||||
});
|
||||
bot._cmd.set("376", (msg) => {
|
||||
bot.server.motd += `${msg.params[1]}\n`;
|
||||
bot.emit("data", ["motd", bot.server.motd]);
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user