thelounge-plugin-tableflip
Version:
Adds /tableflip, /unflip and /shrug commands to your message, similar to Discord.
49 lines (44 loc) • 1.14 kB
JavaScript
const tableflipCommand = {
input: function (client, target, command, args) {
if (args.length === 0) {
client.runAsUser("(╯°□°)╯︵ ┻━┻", target.chan.id);
}
else
{
client.runAsUser(args.splice(0).join(" ") + " (╯°□°)╯︵ ┻━┻", target.chan.id)
}
},
allowDisconnected: true
};
const unflipCommand = {
input: function (client, target, command, args) {
if (args.length === 0) {
client.runAsUser("┬─┬ ノ( ゜-゜ノ)", target.chan.id);
}
else
{
client.runAsUser(args.splice(0).join(" ") + " ┬─┬ ノ( ゜-゜ノ)", target.chan.id)
}
},
allowDisconnected: true
};
const shrugCommand = {
input: function (client, target, command, args) {
if (args.length === 0) {
client.runAsUser("¯\\_(ツ)_/¯", target.chan.id);
}
else
{
client.runAsUser(args.splice(0).join(" ") + " ¯\\_(ツ)_/¯", target.chan.id)
}
},
allowDisconnected: true
};
module.exports = {
onServerStart: api => {
api.Commands.add("tableflip", tableflipCommand);
api.Commands.add("unflip", unflipCommand);
api.Commands.add("shrug", shrugCommand);
},
};