So, i want to do an Timestamp to my Giveaway Command for when the Giveaway Ends. Now the Timestamp is 01.01.1970, i imported datetime and did an convert system. There isnt any Error, so it must been my Code. Any ideas how i can do that? I have no clue how i can change that My Convert System And this
Tag: bots
CallbackQueryHandler reply message instead of edit message – Python Telegram Bot
I’m developing a bot using python telegram bot I would like to be able to send a reply message from a InlineKeyboardButton instead of having to edit the current message. Answer Only one of the optional attributes of Update will be present at a time. If the update from pressing an inline button, then update.callback_query is present, but update.message is
Make Discord.py Bot Only Work In Specific Channels
I was making a bot for my friend using discord.py and I wanted to make it so that it would only work in channel which include the word ticket, made by another bot named Ticket Toll How can I do so? Answer Relevant docs on text channels Unfortunately, Discord’s API does not keep track of who created the channel (which
How do I merge values into one message in discord.py
I want my bot to be able to say a message, mention a user, then respond with a random message, all in the same line, as opposed to having it in 3 separate lines. This was my previous method: However, this makes them all appear in the same line, but I can’t figure out how to merge them into a
Discord.py AttributeError(“‘NoneType’ object has no attribute ‘roles'”)
This bot gives out a role when you click on a reaction in a message, when you delete a reaction, it takes it away, this code worked a year ago and there were no problems, now I run it and get I tried to look on the Internet and it seems that I have everything right, I don’t understand where
Hosting discord bot through Heroku – deploy error
I am trying to host my discord bot through heroku. I’m coding with python. But I got the following error when deploying from GitHub: That was the full build log that I saw on heroku. Can anyone help? Thx Answer You should change the first line in requirements.txt to git+https://github.com/Rapptz/discord.py. Because there is no tag or branch named “rewrite”.
Does an XPath change if the content inside it changes?
Does the Xpath change if the content inside the XPath changes? I.e. the website changes the text in the XPath from ‘supports’ to ‘support’. Would the XPath change even if the text change or will it stay the same? Answer XPath is a syntax to locate element on the page based on it attributes like tag name, class name, id,
What is the difference between having a main bot class versus no class on discord py?
With discord python bots, I can’t seem to find a great answer on this and the documentation actually uses both examples randomly. What is the main difference between using a bot class in your bot.py versus starting your bot without a class? See below for an example Example bot with a class: Example of a regular bot without the class:
Twitter reply-to-mentions bot programmed in Python works once and then crashes with error 400: what is the problem?
I´ve been building a bot and it works exactly as intended, but only for one Tweet. Then, it waits 60 seconds, and, if it doesn´t find a new Tweet to reply to (since it´s configured to reply to the most recent Tweet), it throws an error (it´s 400 as in “400: Bad Authentication Data”, but I think the issue is
Discord.py – which way should I pick? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 1 year ago. Improve this question Recently I’ve known that developers are able to code Discord.py bot in 2 ways (or even more): To code every command