{"action":"opened","issue":{"url":"https://api.github.com/repos/WOrmV/I-have-problems-with-python/issues/1","repository_url":"https://api.github.com/repos/WOrmV/I-have-problems-with-python","labels_url":"https://api.github.com/repos/WOrmV/I-have-problems-with-python/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/WOrmV/I-have-problems-with-python/issues/1/comments","events_url":"https://api.github.com/repos/WOrmV/I-have-problems-with-python/issues/1/events","html_url":"https://github.com/WOrmV/I-have-problems-with-python/issues/1","id":336264059,"node_id":"MDU6SXNzdWUzMzYyNjQwNTk=","number":1,"title":"Problems with coding a discord bot.","user":{"login":"WOrmV","id":40636706,"node_id":"MDQ6VXNlcjQwNjM2NzA2","avatar_url":"https://avatars0.githubusercontent.com/u/40636706?v=4","gravatar_id":"","url":"https://api.github.com/users/WOrmV","html_url":"https://github.com/WOrmV","followers_url":"https://api.github.com/users/WOrmV/followers","following_url":"https://api.github.com/users/WOrmV/following{/other_user}","gists_url":"https://api.github.com/users/WOrmV/gists{/gist_id}","starred_url":"https://api.github.com/users/WOrmV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WOrmV/subscriptions","organizations_url":"https://api.github.com/users/WOrmV/orgs","repos_url":"https://api.github.com/users/WOrmV/repos","events_url":"https://api.github.com/users/WOrmV/events{/privacy}","received_events_url":"https://api.github.com/users/WOrmV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T14:51:35Z","updated_at":"2018-06-27T14:51:35Z","closed_at":null,"author_association":"OWNER","body":"Ignoring exception in on_message\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\adnan\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages\\discord\\client.py\", line 307, in _run_event\r\n    yield from getattr(self, event)(*args, **kwargs)\r\n  File \"C:/Users/adnan/Desktop/ww.py\", line 14, in on_message\r\n    await client.send_message(messsage.author,\"Hello World\")\r\nNameError: name 'messsage' is not defined\r\n\r\n\r\n\r\nThis happens when I say \"!hello\" to my bot.\r\nI coded like this:\r\n\r\n\r\nimport discord\r\nfrom discord.ext.commands import Bot\r\nfrom discord.ext import commands\r\nClient = discord.Client()\r\nclient = commands.Bot(command_prefix = \"\")\r\n@client.event\r\nasync def on_ready ():\r\n    print(\"The bot is online!\")\r\n\r\n@client.event\r\nasync def on_message(message):\r\n    if message.content == \"!hello\":\r\n       await client.send_message(messsage.author,\"Hello World\")\r\n\r\n\r\n\r\nclient.run(\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\") <-- hid it\r\n"}}
{"actor":{"display_login":"WOrmV"}}