P
P
Python Newbie2021-07-12 11:28:14
Bots
Python Newbie, 2021-07-12 11:28:14

How to write from a discord bot?

I want to make a bot that will send all messages from the server to the console. For example: [(channel name)] {(sender's nickname on the server)} wrote "(sent message)"

And also send messages through the console on behalf of the bot.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TanderOFF, 2021-07-12
@Levman5

Download from github such an application for Windows or Linux called Discord Bot Client Click
Take your bot token from the developer portal and paste it into this application and sit as long as you like.

D
Deleting Account, 2021-07-12
@Andriy_Kosmenyuk

I want to make a bot that will send all messages from the server to the console. For example: [(channel name)] {(sender nickname on the server)} wrote "(message sent)"
- you can just add processing for the on_message event, and just log what you need.
And also send messages through the console on behalf of the bot
- you can make an asynchronous server that will receive the data that needs to be sent to the desired endpoint, and send it through the bot. FastApi for quickly writing a server is quite amiss.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question