How to use the monochrome-bot.Permissions.sendMessages function in monochrome-bot

To help you get started, we’ve selected a few monochrome-bot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mistval / kotoba / bot / src / discord_commands / shiritori.js View on Github external
* 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);
    }