why i cant turn on bot? #5

Closed
opened 2026-02-15 23:16:11 -05:00 by yindo · 4 comments
Owner

Originally created by @ajb3296 on GitHub (Sep 3, 2021).

Describe the bug
A clear and concise description of what the bug is.

i cant turn on bot with screenshot's msg

To Reproduce
A small code snippet showing the error

import asyncio
import aiohttp
from bot import TOKEN, commandInt

import revolt


class Client(revolt.Client):
    async def on_message(self, message: revolt.Message):
        msg = None
        if message.content[0] == commandInt:
            msg = message.content[1:]
        if msg == "hello":
            await message.channel.send("wow")

async def main():
    async with aiohttp.ClientSession() as session:
        client = Client(session, TOKEN)
        await client.start()

asyncio.run(main())

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

스크린샷 2021-09-03 오후 2 03 49

Library version
Access this info via pip show revolt.py

latest(download from github)

Additional context
Add any other context about the problem here.

Originally created by @ajb3296 on GitHub (Sep 3, 2021). **Describe the bug** A clear and concise description of what the bug is. i cant turn on bot with screenshot's msg **To Reproduce** A small code snippet showing the error ```py import asyncio import aiohttp from bot import TOKEN, commandInt import revolt class Client(revolt.Client): async def on_message(self, message: revolt.Message): msg = None if message.content[0] == commandInt: msg = message.content[1:] if msg == "hello": await message.channel.send("wow") async def main(): async with aiohttp.ClientSession() as session: client = Client(session, TOKEN) await client.start() asyncio.run(main()) ``` **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. ![스크린샷 2021-09-03 오후 2 03 49](https://user-images.githubusercontent.com/33373557/131953138-b1400ad8-929d-4b5f-a823-b2ad9e2c82dd.png) **Library version** Access this info via `pip show revolt.py` latest(download from github) **Additional context** Add any other context about the problem here.
yindo added the unconfirmed bug label 2026-02-15 23:16:11 -05:00
yindo closed this issue 2026-02-15 23:16:11 -05:00
Author
Owner

@Zomatree commented on GitHub (Sep 4, 2021):

Can you explain what isnt working?

@Zomatree commented on GitHub (Sep 4, 2021): Can you explain what isnt working?
Author
Owner

@ajb3296 commented on GitHub (Sep 4, 2021):

it just repeats the message "Sending heartbeat" and the bot doesn't turn on.
i dont know what is problem

@ajb3296 commented on GitHub (Sep 4, 2021): it just repeats the message "Sending heartbeat" and the bot doesn't turn on. i dont know what is problem
Author
Owner

@mtlhdnrd commented on GitHub (Dec 28, 2021):

did you give it a token? did you add the bot to any servers?

@mtlhdnrd commented on GitHub (Dec 28, 2021): did you give it a token? did you add the bot to any servers?
Author
Owner

@Zomatree commented on GitHub (Jul 2, 2022):

Closing from inactivity, if you continue to have this issue please re-open this issue.

@Zomatree commented on GitHub (Jul 2, 2022): Closing from inactivity, if you continue to have this issue please re-open this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#5