![]() ![]() Practical Discord Bot in Python (discordpy explanation) How to detect reaction with Discord. Postscript: I was told how to make one reaction When completed, deploy it around heroku and run it, and it will translate 24 hours a day, convenient!īy the way, I didn't know how to get the number of reactions, so if I react 2 times, it will be translated twice. ngilizce dilinden Trke diline ( google translate araclyla) hzl cmle. Since src is the sentence before translation and dest is the sentence after translation, it can be translated into English or Japanese. Most powerful bot to translate on Discord, 100+ languages, slash commands. In my case, I translated the Japanese flag into Japanese and the American flag into English. Regarding emoji.id, if it is *** registered emoji ***, the emoji ID is assigned, so after setting the emoji on the server, react and solidify the emoji ID spit out in print. Google Translate "googletrans"Īll you have to do is throw the translation to Google Translate and return the result in a message. #Launching a bot and connecting to a Discord serverįor, set the ID of the emoji you want to react to (Integer). Trans_en = anslate(, src='ja', dest='en') Trans_en = anslate(, src='en', dest='ja')Īwait (trans_en.text) Print('You are now def on_reaction_add(reaction, user): #When started, a login notification will be displayed in the terminal Just to let everyone know this bot does not auto. #Processing that operates at def on_ready(): THE BOT IS NOW PAID, legal issues and api problems made this change inevitable, sorry for any inconvenience. #Generate the objects needed for the connection Practical Discord Bot in Python (discordpy explanation) Source code #Installed discord.Load py The method of making a bot with Discord is omitted. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |