Quantcast
Channel: User raphiel - Stack Overflow
Browsing index pages (44 articles)
↧

discord.py | play audio from url

I want to make my bot playing audio from an url, but I don't want to download the file ...Here is my code:@commands.command(name='test') async def test(self, ctx): search = "morpheus tutorials discord...

View Article


Answer by raphiel for cannot communicate with server: Post...

Maybe you don't have the snapd service runningTo start it onetimes do:sudo systemctl start snapdTo enable that it always start with your system do:sudo systemctl enable snapd

View Article


discord.py | play audio from url

I want to make my bot playing audio from an url, but I don't want to download the file ...Here is my code:@commands.command(name='test') async def test(self, ctx): search = "morpheus tutorials discord...

View Article

Comment by raphiel on How To Get The Member Count Discord.py

@BadriVishalManiTripathi this method will require that the guilds are fetched and loaded in the cache if the're not there will be 0 users counted for this guild. you could load the guilds in the...

View Article

Comment by raphiel on How to use variable for SQLite table name

hey, does sb know how I can verify the input if it comes from an user and the table doesn't exists? Because I have a function to create a table

View Article


Comment by raphiel on PyQt, click action on Qwidget

@Ja8zyjits is there another way to send a var?

View Article

Actix Token Auth for Scope

I made a Actix Webserver which includes a scope ("/api") with a few routes.Now I want to expose the API but I want to limit the access via tokens and I found a way to do it by getting the body in a...

View Article

Answer by raphiel for Why isn't my bot responding to commands sent from...

this is caused by how discord.py is written, they have somewhere in the libary code a check if the message is from a bot account and if it is the commands.ext Command is not triggered.If you want to...

View Article


Answer by raphiel for AFK command `on_message()` mentions check not working

below you write the user ids in this patternafk_list[server_id] with the user id in itbut in the checkif user.id in afk_lists: await message.channel.send(f"{user.mention} is currently AFK!")where you...

View Article


Answer by raphiel for Discord.py block the rest of my program to run

The simplest solution is to use the websocket async like described in the Websocket Documentationasync def hello(): async with websockets.connect('ws://localhost:8765') as websocket: name =...

View Article

Answer by raphiel for How to make a discord bot button that can download the...

It's not possible with the discord.py api to make a download on a client pc. you can only upload the image in discord or give the user an url where he can download the image. If you use an url you can...

View Article

Answer by raphiel for python - discord.py how can I check if double quotes...

just make the check like thisif '"' in text:quote the " in ''

View Article

Answer by raphiel for Having issues with my Discord bot not responding to...

i see one big problem here:# load the cogsfor filename in os.listdir('./cogs'): # check that the file is a Python file and not a hidden file if filename.endswith('.py') and not...

View Article


Answer by raphiel for What is the maximum size of a csv file?

The only limitation is your storage limit, in theory a csv can be of unlimited size.But if it's to big it may be unusable for practical use because limitations of your read and write speed, memory size...

View Article

Answer by raphiel for How to send data originally from backend flask to frontend

I think the best solution for this type of problem where you want to receive information from the backend on a backend event would bemake the backend write in a file (json if you want to match it only...

View Article


Answer by raphiel for Threading/multiprocessing in replacement to dictionary...

your function is already async, means it can run parallel. So there is really no nead for threading it ...threading simply means you create a process that runs the functionasync means this function...

View Article

Answer by raphiel for Unable to install poppler library

like the lineRuntimeError: CMake must be installed to build the following extensions: poppler.cpp.modulessays I would try to install cmake and then run it againyou can install it viapip install cmake

View Article


Answer by raphiel for Why such an error occurs when using pip install to...

This occurs due to files names with the '~' prefix in site-packages. Please remove those files / folders. It will solve your problem.You can list them (linux, mac) withls -a...

View Article

Answer by raphiel for VS Code: from (file) import * not working

like nigh-anxiety already mentioned in the comments, it is a really bad practice to import * from something because it can pollute your name space ...another problem could arise if you have a libary...

View Article

Answer by raphiel for Discord bot command from one bot to another

if the bot you want to give commands is not from you you can't fix this ... because they set it in their code so that is will only respond to user accounts.If the Bot you want to give the command...

View Article
Browsing index pages (44 articles)


Latest Images