Adding a test command to test message matching
This commit is contained in:
parent
58d87ceba9
commit
6794eefbc2
|
@ -232,6 +232,12 @@ class Mod:
|
||||||
except IndexError:
|
except IndexError:
|
||||||
await self.bot.say("That is not a valid rule number, try running the command again. "
|
await self.bot.say("That is not a valid rule number, try running the command again. "
|
||||||
"Your current rules are:\n```\n{}```".format(list_rules))
|
"Your current rules are:\n```\n{}```".format(list_rules))
|
||||||
|
|
||||||
|
@commands.command()
|
||||||
|
@checks.customPermsOrRole(manage_server=True)
|
||||||
|
async def test(self, arg1, arg2, *arg3):
|
||||||
|
fmt = "First argument: {}\nSecond Argument: {}\nThird Argument: {}".format(arg1, arg2, arg3)
|
||||||
|
await self.bot.say("```\n{}```".format(fmt))
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
|
|
Loading…
Reference in a new issue