Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Starting a Shiritori game. I'll go first!
* To stop the game say **${prefix}shiritori stop**.
* Other players can join by saying **join**.
* If you don't want to play with me, say **bot leave** and I'll leave the game :(
`;
}
module.exports = {
commandAliases: ['shiritori', 'st', 'sh'],
canBeChannelRestricted: true,
cooldown: 2,
uniqueId: 'shiritori43953',
shortDescription: 'Start a game of shiritori in this channel.',
longDescription: 'Start a game of shiritori in this channel. **shiritori hardcore** starts a game in hardcore mode, which means you get kicked out if you give an invalid answer. Some timing settings can be configured in **settings shiritori**',
requiredBotPermissions: [Permissions.embedLinks, Permissions.sendMessages, Permissions.addReactions],
requiredSettings: [
'shiritori/bot_turn_minimum_wait',
'shiritori/bot_turn_maximum_wait',
'shiritori/answer_time_limit',
'shiritori/bot_score_multiplier',
],
async action(bot, msg, suffix, monochrome, serverSettings) {
const locationId = msg.channel.id;
const suffixLowerCase = suffix.toLowerCase();
if (suffixLowerCase === 'stop') {
return shiritoriManager.stopGame(locationId, msg.author.id);
}
const { prefix } = msg;
throwIfSessionInProgress(locationId, prefix);
* Other players can join by saying **join**.
* If you don't want to play with me, say **bot leave** and I'll leave the game :(
`;
}
module.exports = {
commandAliases: ['shiritori', 'st', 'sh'],
canBeChannelRestricted: true,
cooldown: 2,
uniqueId: 'shiritori43953',
shortDescription: 'Start a game of shiritori in this channel.',
longDescription: 'Start a game of shiritori in this channel. **shiritori hardcore** starts a game in hardcore mode, which means you get kicked out if you give an invalid answer. Some timing settings can be configured in **settings shiritori**',
requiredBotPermissions: [
Permissions.embedLinks,
Permissions.sendMessages,
Permissions.addReactions,
],
requiredSettings: [
'shiritori/bot_turn_minimum_wait',
'shiritori/bot_turn_maximum_wait',
'shiritori/answer_time_limit',
'shiritori/bot_score_multiplier',
],
async action(bot, msg, suffix, monochrome, serverSettings) {
const locationId = msg.channel.id;
const suffixLowerCase = suffix.toLowerCase();
if (suffixLowerCase === 'stop') {
return shiritoriManager.stopGame(locationId, msg.author.id);
}
const { prefix } = msg;