Aug-31-2017, 10:48 AM
my question here
---------------------------------------------------------------------------------------------------------------------------------
Ignoring exception in command bans
Traceback (most recent call last):
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "C:\Users\zacha\Desktop\JOke bot\jokebot.py", line 45, in bans
await client.send_message('owner,client.get_bans,*,tts-False')
TypeError: send_message() missing 1 required positional argument: 'content'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 822, in process_commands
yield from command.invoke(ctx)
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 367, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 52, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: send_message() missing 1 required positional argument: 'content'
import discord from discord.ext.commands import Bot from discord.ext import commands import asyncio Client = discord.Client() bot_prefix= "¬" client = commands.Bot(command_prefix=bot_prefix) @client.event async def on_ready(): print("Bot Online") print("name: {}".format(client.user.name)) print("ID: {}".format(client.user.id)) @client.command(pass_context=True) async def rule1(ctx): await client.say("Do not have a name of all special charaters!") @client.command(pass_context=True) async def rule2(ctx): await client.say("Treat Everyone with Respect") @client.command(pass_context=True) async def creator(ctx): await client.say("@13bathz has created me!") @client.command(pass_context=True) async def exit(ctx): close() @client.command(pass_context=True) async def cr(ctx): await client.say("This bot has only been made the the service unison-networks if you are found using this bot actions will be implemented!") @client.command(pass_context=True) async def rule3(ctx): await client.say("Do not spam any of the text channel if you do you may be muted") @client.command(pass_context=True) async def bans(ctx): client.get_bans("[UN] Unison-Networks") await client.send_message('owner,client.get_bans',*,tts-False') pauseerror
---------------------------------------------------------------------------------------------------------------------------------
Ignoring exception in command bans
Traceback (most recent call last):
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(*args, **kwargs)
File "C:\Users\zacha\Desktop\JOke bot\jokebot.py", line 45, in bans
await client.send_message('owner,client.get_bans,*,tts-False')
TypeError: send_message() missing 1 required positional argument: 'content'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 822, in process_commands
yield from command.invoke(ctx)
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 367, in invoke
yield from injected(*ctx.args, **ctx.kwargs)
File "C:\Users\zacha\AppData\Local\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 52, in wrapped
raise CommandInvokeError(e) from e
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: send_message() missing 1 required positional argument: 'content'