Example #1
0
 async def step_8(self, args):
     if '!restart' in args:
         return await self.restart()
     try:
         if int(args[0]) > 10000000:
             return Response('The number you entered is too large! Please enter something more reasonable!\nPlease try again!',
                         pm=True)
         self.server_config_build[7] = int(args[0])
     except:
         return Response('I didn\'t quite catch that! The input I picked up doesn\'t seem to be correct!\nPlease try again!',
                         pm=True)
     self.step = 9
     return Response('Okay, got it. Added {} as the number of hours till a user is considered a long time member!\n\nNext up is the channel you\'d'
                     'like all my announcements of changes to go to!\nThese will be sent when Rhino needs to communicate with the moderation teams '
                     'who use the bot about new commands, new features, ect.\nMake sure its sent as the Channel ID which can be found by putting a `\` before the channel tag `ie \#channel_name`'
                     '\nThis step can be skipped!\n\t`example input: 135866654117724160`'.format(
                         args[0]
                     ),
                     pm=True
                     )
Example #2
0
 async def step_0(self, args):
     self.step = 1
     self.build_empty_config()
     return Response(
         'Hello {}! Let\'s get your server `{}` set up and ready to roll! \nA few prerequisites before we continue, '
         'you\'ll need to make sure the bot has all of the permissions of a regular Moderator *ie: Manage Server, Channels, Roles,'
         'Messages, ect.* Also be sure the check out {} for information on setting up the **Muted** role! \n\nNow, to start the Registration'
         ' process, you need to go to {} and read through it. Follow the directions there and you\'ll be able to continue!'
         .format(self.user.name, self.server.name, MUTED_IMGUR_SETUP_LINK,
                 DOCUMENTATION_FOR_BOT),
         pm=True)
Example #3
0
 async def step_9(self, args):
     if '!restart' in args:
         return await self.restart()
     if 'True' in args:
         self.server_config_build[10][0] = True
         args = 'will'
     elif 'False' in args:
         self.server_config_build[10][0] = False
         args = 'wont'
     else:
         return Response(
             'I didn\'t quite catch that! The input I picked up doesn\'t seem to be correct!\nPlease try again!',
             pm=True)
     self.step = 10
     return Response(
         'Okay, got it. I {} report action reasons!\n\nFinally, I\'ll need to know which channels you\'d like me to ignore all together.'
         '\nMake sure its sent as the Channel ID which can be found by putting a `\` before the channel tag `ie \#channel_name`'
         '\n\t`example input: 130787272781070337, 77514836912644096`'.
         format(args),
         pm=True)
Example #4
0
    async def step_6(self, args):
        if '!restart' in args:
            return await self.restart()
        if args and '!skip' not in args:
            newargs = []
            for thing in args:
                newargs.append(slugify(thing, stopwords=['https', 'http', 'www'], separator='_'))

            self.server_config_build[5] = newargs
        elif '!skip' in args:
            args = 'nothing since you decided to skip'
        else:
            return Response('I didn\'t quite catch that! The input I picked up doesn\'t seem to be correct!\nPlease try again!',
                            pm=True)
        self.step = 7
        return Response('Okay, got it. Added {} to the list of black listed strings!\n\nNext up is the action to be taken upon finding a '
                        'blacklisted word or if a person is rate limited over 4 times! \nI\'ll take `kick / ban / mute / nothing` as input for this option!'
                        ' \n\t`example input: mute`'.format(
                            args
                        ),
                        pm=True
                        )