Category "bots"

How do I avoid using global variables when writing a Telegram bot

I'm writing a Telegram bot on Python using the python-telegram-bot library. The bot's function is to look up POIs around a given location. I have a Conversation

How to rethink the architecture of my Python project containing multiple async interfaces

I'm developping a Twitch Bot for approximatively a year now. Over the time, the bot became bigger and bigger to add features. Now the bot can manage multiple in

infinite laught Lulu (infinite press: ctrl+3 while i play)

Is it possible to create a program that press infinite ctrl+3, together with me pressing other keys? I play lol and i like to laught (press ctrl+3) while i play

Telegram bot: List of telegram bot commands

I can not find how to get a list of commands from a telegram bot. Neither via api nor via external binding. Is it even possible? For example. I created a list o

How to detect message content Discord.js?

I am working on a code for a Discord bot for my server, and I'm currently stumped on a magic 8 ball feature, go figure. I'm trying to get it to check if there i

Displaying Cooldown In Seconds in On_Message in Discord.py

EDIT: I solved it, I just simply looped the asyncio.sleep and set a variable for the cooldown in seconds. :) I'm new to discord.py and I just started developing

Freqtrade Python Sell Sign

I am trying to create a sales order using the Freqtrade bot when: The current price hits the entry price + ATR. I don't know how I can retrieve the entry price

Make Hikari discord bot only listen to one channel

I just mada a discord bot with hikari that for now listens to a whole server, and if someone types $shares https://tiktok.com/@xxx/2938923 It runs a script, th

DiscordPy Bot abnormally long shutdown times

So here's the crux of the problem. I'm using the Discord Py API (1.7.3). I have 2 bots I run that use it, Red Bot and the one I made myself. I've come to notice

Use Excel File in C# Microsoft botframework SDK

How can I read local excel data on my C# bot using bot framework SDK. I can't find any documentation for it. Can anyone help?

Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

Discord.Py ffmpeg was not found

@commands.command() async def play(self, ctx, url): ctx.voice_client.stop() FFMPEG_OPTIONS = {'before_options': 'reconnect 1 -reconnect_str

Telegram bot and google apps script not working

Good evening everyone, forgive the trouble, I tried to do a "search" on the site but I could not find the answer to my problem so I thought of opening a new dis

What is wrong with my crypto price discovery bot?

I'm following Dapp Universitie's Create a PROFITABLE cryptocurrency trading bot video. I use git and npm install but when I run npm run start in the terminal I

Is there a way to allow your bot to follow announcement channels for other servers through a command?

My bot uses discord.py, is there a way to code it to allow it to automatically follow an announcement channel for other servers to your server through a command

opencv bot Recursion Error using pyautogui , python-imagesearch, cv2

Im writing a bot using cv2 , pyautogui,and imagesearch libaries. in this function im searching for an image then I'm going to run another function when found if

How to make a Discord bot tell the current date and time on command?

I want to have my Discord bot tell me the current date and time on a simple command, so if I say "whats the time?" it will tell me. Currently my only solution i

puppeteer bypass cloudflare by enable cookies and Javascript

(In nodeJs -> server side only). I'm doing some webscraping and some pages are protected by the cloudflare anti-ddos page. I'm trying to bypasse this page. B

Deploying a chatbot written with the Flask framework

I have created basic chatbot using FLASK framework and Python. This will create a default URL http://127.0.0.1/5000. Below link is similar to my chatbot. ex: h

Discord Python bot - Coroutine never awaited

I'm trying to make a Blind-test bot game in Python, which actually works pretty fine. I managed to get a whole spotify playlist in the queue with that play_next