twitch_bot/commands/commands.js

19 lines
397 B
JavaScript
Raw Normal View History

2023-02-01 13:45:03 +01:00
const command = {
name: "commands",
desc: "get list of commands",
2023-02-02 23:37:42 +01:00
restricted: false,
2023-02-02 23:58:58 +01:00
mod: false,
2023-02-01 13:45:03 +01:00
run: async (client, msg) => {
2023-02-11 13:15:30 +01:00
await client.say(
msg.channelName,
`${msg.displayName}, ${
client.commands.length
} commands; List of commands: ${client.commands
.map((cmd) => cmd.name)
.join(", ")}`
);
2023-02-01 13:45:03 +01:00
},
};
2023-02-01 22:11:48 +01:00
module.exports = { command };