#discord-bots

1 messages · Page 670 of 1

shadow wraith
#

i saw that

maiden fable
#

trying to not send memes here

upbeat otter
#

@slate swan you fine?

maiden fable
upbeat otter
upbeat otter
slate swan
maiden fable
weary gale
#

i am blessed

upbeat otter
maiden fable
#

Lmao it was just a joke

weary gale
#

new lyrics for my up and coming rap song

maiden fable
#

Kira please ask a question make this less awkward 🥺

shadow wraith
#

!ot

weary gale
#

i am blessed yuh,
u aint blessed yuh,
i am blessed yuh,
u aint blessed yuh,
i am blessed yuh,
u aint blessed yuh,
i am blessed yuh,
u aint blessed yuh,
i am blessed yuh,
u aint blessed yuh,

maiden fable
#

😐

slate swan
#

ngl it became a shit posting channel

maiden fable
#

Yea

slate swan
maiden fable
#

Anyways I have a question...

weary gale
#

question away

maiden fable
#

My button shows Interaction Failed even after sending the message

manic wing
#

can you set an embed field under the image

maiden fable
upbeat otter
#

thank me later

shadow wraith
#

guys what other decorators can you use other than discord.ui.button in a subclass of discord.ui.View

tough lance
shadow wraith
#

!d discord.ui.select

unkempt canyonBOT
#

discord.ui.select(*, placeholder=None, custom_id=..., min_values=1, max_values=1, options=..., disabled=False, row=None)```
A decorator that attaches a select menu to a component.

The function being decorated should have three parameters, `self` representing the [`discord.ui.View`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.View "discord.ui.View"), the [`discord.ui.Select`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.Select "discord.ui.Select") being pressed and the [`discord.Interaction`](https://discordpy.readthedocs.io/en/master/api.html#discord.Interaction "discord.Interaction") you receive.

In order to get the selected items that the user has chosen within the callback use [`Select.values`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.Select.values "discord.ui.Select.values").
upbeat otter
shadow wraith
west escarp
#

Alright, that's a bit far for here

shadow wraith
#

can someone show me an example for adding a decorator for discord.ui.select

#

because examples give me the understanding

tough lance
# shadow wraith can someone show me an example for adding a decorator for discord.ui.select
class View(discord.ui.View):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

    @discord.ui.select(custom_id="Some identifier", placeholder="Placeholder", min_values=1, max_values=1, options=[discord.SelectOption(label="Hello", emoji="😳")])
    async def callback(self, select: discord.ui.select, interaction: discord.Interaction):
        await interaction.response.send_message('Hello', ephemeral=True) 

await ctx.send('Test', view=View()) 
tough lance
#

The bot's an introvert

maiden fable
tough lance
#

I just copy posted the code. I am on mobile so yh

boreal ravine
#

bruh

maiden fable
#

Ghost Ping

boreal ravine
#

dont ghost ping people @upbeat otter

maiden fable
#

What did u say tho

upbeat otter
upbeat otter
boreal ravine
maiden fable
#

¯_(ツ)_/¯

boreal ravine
#

you pinged him, then deleted the message? that aint a mistake lol

maiden fable
#

Eh just ignore it ig

upbeat otter
maiden fable
#

What did she even say

maiden fable
tough lance
#

Weird

maiden fable
#

???

cloud bison
#

is theres a way to make sticky message?

boreal ravine
#

sticky message?

#

whats that

slate swan
#

why is not work? await remove.reaction()

maiden fable
#

await reaction.remove()*

slate swan
maiden fable
#

(:

manic wing
#

how do you subclass on_messagebut its a listener not event

weary gale
#

how can i host my bot for free lol?
not using heroku and i cant use railway bc my github acc is less than 30 days old

shadow wraith
#

its free

#

but you can only host 1 bot

weary gale
#

is it 24/7?

shadow wraith
#

mhm

weary gale
#

thx

hidden mantle
#
@client.command()
async def checkpubmp(ctx):
    server = ctx.guild
    liste_id_dans_serveur = []
    for membre in server.members:
        if membre.id in ids:
            print(server.members)
            print("coucou2")
            liste_id_dans_serveur.append(membre.id)
            if len(liste_id_dans_serveur) > 0:
                print("coucou")
                embed = discord.Embed(title="Pour vérifier les preuves", url="")
                embed.colour = discord.Colour.red()
                embed.description = "> :no_entry: Les ID suivantes **d'utilisateurs qui Pubent MP** ont été détectées :"
                await ctx.send(embed=embed)
                text = ""
                for i in liste_id_dans_serveur:
                    text = text + str(i) + "\n"
                    embed = discord.Embed()
                    embed.colour = discord.Colour.red()
                    embed.description = text
                    await ctx.send(embed=embed)
            else:
                embed = discord.Embed()
                embed.colour = discord.Color.green()
                embed.description = "> :white_check_mark: Votre serveur ne possède **aucun pubeur MP** de notre base de donnée."
                await ctx.send(embed=embed)

Hi excuse me, but my code does not work. There are nothing in the terminal and nothing is send in discord. I dont know why it's broke. Please ping me

slate swan
#

ids should be undefined

#

but I don't think you want this code to work like how you wrote it

#

this would send a damn lot of messages

hidden mantle
#

No

#

It’s just send the ID of a data base

#

A list

slate swan
#
    await ctx.send(embed=embed)```
#

would already send as many messages as how many elements there are in that list

hidden mantle
#

If the code start « if message.content.startswith » it’s work

slate swan
#

this.... is a different command?

#

oh bruh if you use if message.content.startswith in on_message it works

#

you have to replace @bot.event with @bot.listen()

#

in on_message's decorators

boreal ravine
#

how do I create a custom event

slate swan
#

what

#

what kind of event

boreal ravine
#

a custom one

slate swan
#

okay but when does it react

opal skiff
#

So i want to make a command to bind a channel to an id of an external service(i wont go into detail i just want to store an id for a channel id) how do i do that?

boreal ravine
slate swan
#

well you don't

boreal ravine
#

what

#

wym

slate swan
#

I think almost every action that you're able to do in discord already triggers an event

boreal ravine
#

i want a custom one

slate swan
#

but for what

boreal ravine
#

im not sure at the moment

#

just wanna know how to make one

slate swan
#

you won't ever have to do that

#

I don't think so

#

but you can look in dpy's source code to see how they do it

boreal ravine
#

hm

opal skiff
slate swan
#

bot variables

#

bot.stored_channel_id = 11111111111

upbeat otter
slate swan
#

that's true

#

especially when you're using heroku or repl

opal skiff
slate swan
upbeat otter
#

^

#

Mongodb can help you easily, otherwise SQL DBs work too

opal skiff
#

ok like should i save like "channelid":[id1,id2,...]

#

or should i do something else?

sour lodge
#

is it possible to add buttons with python

upbeat otter
upbeat otter
slate swan
sour lodge
opal skiff
slate swan
#

well you should learn to

upbeat otter
unkempt canyonBOT
#

discord.ui.button(*, label=None, custom_id=None, disabled=False, style=<ButtonStyle.secondary: 2>, emoji=None, row=None)```
A decorator that attaches a button to a component.

The function being decorated should have three parameters, `self` representing the [`discord.ui.View`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.View "discord.ui.View"), the [`discord.ui.Button`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.Button "discord.ui.Button") being pressed and the [`discord.Interaction`](https://discordpy.readthedocs.io/en/master/api.html#discord.Interaction "discord.Interaction") you receive.

Note

Buttons with a URL cannot be created with this function. Consider creating a [`Button`](https://discordpy.readthedocs.io/en/master/api.html#discord.ui.Button "discord.ui.Button") manually instead. This is because buttons with a URL do not have a callback associated with them since Discord does not do any processing with it.
sour lodge
#

alright thanks

upbeat otter
sinful pasture
#

How do I get my bot to send a random string of text from an API

opal skiff
#

ok

upbeat otter
#

,-,

sinful pasture
#

no i need it to have the api generate a random string and then send that

#

specifically:
I need my bot to get a dad joke from dadjokes.io and send it

upbeat otter
unkempt canyonBOT
sinful pasture
#

ok

upbeat otter
sinful pasture
#

wait what

upbeat otter
#

!pypi dadjokes

unkempt canyonBOT
upbeat otter
#

^

sinful pasture
#

holy melk

#

tysm

upbeat otter
little ferry
#

please help with the code for the discord bot. How to make a bot write a text in a chat?

#

thank you

dire folio
#

await ctx.send("msg here")

little ferry
#

and how to make sure that when he joins the server, he writes a message to the chat?

sage otter
sinful pasture
#
async def on_message(message):
  if message.content.startswith('infinite_dadjokes'):
    await message.channel.send(dadjoke)
    time.sleep(10)```

so because I changed the source of my dadjokes, my previosu concept doesn't work, how can I make this an infinite loop
boreal ravine
#

while true

#

loops

sage otter
#

time.sleep() oogh

sinful pasture
slate swan
sinful pasture
boreal ravine
boreal ravine
slate swan
#

you have to use async

sage otter
gaunt wedge
slate swan
#

Which Discord API is the best one for python out there right now?

boreal ravine
#

!e

def b():
    while True:
        print(1)
b()
crystal cliff
#

how do i store discord servers, in a database on discord.py?

unkempt canyonBOT
#

@boreal ravine :x: Your eval job timed out or ran out of memory.

001 | 1
002 | 1
003 | 1
004 | 1
005 | 1
006 | 1
007 | 1
008 | 1
009 | 1
010 | 1
011 | 1
... (truncated - too many lines)

Full output: too long to upload

slate swan
#

Are you sure? I hear Pycord a lot too

boreal ravine
boreal ravine
gaunt wedge
#

how to make discord automatically disable all the buttons for me? like a timeout thing on a view?

(uisng discord.py)

boreal ravine
slate swan
slate swan
boreal ravine
slate swan
#

while using while true, your bot won't be able to do anything else

slate swan
boreal ravine
woven flint
#

ive been trying to use discord ipc, i know its archived, and i couldnt get it to work, are there any alternatives/better ways to do it?

slate swan
#

!d discord.ext.tasks.loop

unkempt canyonBOT
#

discord.ext.tasks.loop(*, seconds=..., minutes=..., hours=..., time=..., count=None, reconnect=True, loop=...)```
A decorator that schedules a task in the background for you with optional reconnect logic. The decorator returns a [`Loop`](https://discordpy.readthedocs.io/en/master/ext/tasks/index.html#discord.ext.tasks.Loop "discord.ext.tasks.Loop").
gaunt wedge
boreal ravine
boreal ravine
upbeat otter
gaunt wedge
boreal ravine
upbeat otter
#

,-,

boreal ravine
#

he wants an infinite loop

upbeat otter
sinful pasture
#

i love how my simple request started a controversy

boreal ravine
slate swan
#

I'm starting to get tired of these

boreal ravine
#

of these?

slate swan
#

a task is infinite

boreal ravine
upbeat otter
#

^

slate swan
#

you can set the time, that they will wait before triggering twice

#

a task is the async version of a while true statement

#

it isn't blocking

#

so it's the complete same thing

crystal cliff
slate swan
#

just less code and your bot will be able to do other stuff

upbeat otter
crystal cliff
upbeat otter
boreal ravine
#

you dont ask how to use a db

boreal ravine
sage otter
crystal cliff
boreal ravine
upbeat otter
#

for json, mongo will server you better

slate swan
#

mmhmm

crystal cliff
upbeat otter
maiden fable
#

Facts

sinful pasture
#

i once again require assistance

plucky badger
#

Ignoring exception in command __leaderboard:
Traceback (most recent call last):
File "C:\Users\lqwxx\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "bot1.py", line 285, in __leaderboard
embed.add_field(
TypeError: add_field() got an unexpected keyword argument 'rep'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\lqwxx\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\lqwxx\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\lqwxx\AppData\Local\Programs\Python\Python38\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: add_field() got an unexpected keyword argument 'rep'

sage otter
#

I mean read the error.

#

It tells you exactly what’s wrong

sinful pasture
#

*Infinite Dad Jokes, ACTIVATE

BOT
Yessiree
I fear for the calendar, its days are numbered.
I fear for the calendar, its days are numbered.
I fear for the calendar, its days are numbered.
I fear for the calendar, its days are numbered.*

async def on_message(message):
  if message.content.startswith('Infinite Dad Jokes, ACTIVATE'):
    await message.channel.send('Yessiree')
  if message.author ==client.user:
      await message.channel.send(dadjoke.joke)
      time.sleep(10)```

I know it's a gimmicky concept but either way, it still spams the same joke
plucky badger
#
@bot.command(aliases = ['leaderboard', 'lb'])
async def __leaderboard(ctx):
    await ctx.channel.purge(limit=1)
    embed = discord.Embed(title = 'Топ 10 сервера')
    counter = 0
    #SELECT name, cash FROM users WHERE server_id
    #cursor.execute("SELECT cash FROM users WHERE id = {}".format(member.id)).fetchone()[0]
    for row in cursor.execute("SELECT name, cash, rep FROM users WHERE server_id = {} ORDER BY cash DESC LIMIT 10".format(ctx.guild.id)):
        counter += 2
        embed.add_field(
            name = f'# {counter} | `{row[0]}`',
            value = f'Баланс: {row[1]}',
            rep = f"Репутация: {row[2]}",
            inline = True
#
@bot.event
async def on_ready():
    cursor.execute("""CREATE TABLE IF NOT EXISTS users (
        name TEXT,
        id INT,
        cash BIGINT,
        rep BIGINT,
        lvl BIGINT,
        server_id INT
    )""")
 
    cursor.execute("""CREATE TABLE IF NOT EXISTS shop (
        role_id INT,
        id INT,
        cost BIGINT
    )""")
 
    for guild in bot.guilds:
        for member in guild.members:
            if cursor.execute(f"SELECT id FROM users WHERE id = {member.id}").fetchone() is None:
                cursor.execute(f"INSERT INTO users VALUES ('{member}', {member.id}, 0, 0, 1, {guild.id})")
            else:
                pass
#

why?

sage otter
sinful pasture
sage otter
#

That’s not a thing

plucky badger
sage otter
plucky badger
#
@bot.command(aliases = ['rep', '+rep'])
async def __rep(ctx, member: discord.Member = None):
    await ctx.channel.purge(limit=1)
    if member is None:
        await ctx.send(f"**{ctx.author}**, укажите участника сервера")
    else:
        if member.id == ctx.author.id:
            await ctx.send(f"**{ctx.author}**, вы не можете указать смого себя")
        else:
            cursor.execute("UPDATE users SET rep = rep + {} WHERE id = {}".format(1, member.id))
            connection.commit()
 
            await ctx.message.add_reaction('✅')
sage otter
#

I don’t know what to tell you then man. If you don’t want to remove it, then enjoy your error. AMshrug

sage otter
#

Then put it in a new field or something.

plucky badger
#
rep = f"Репутация: {row[2]}",
#

or how

sinful pasture
#

hello fellow russian speaker

rigid mesa
#

how to fix ImportError: DLL load failed while importing _brotli: specified module not found.

sinful pasture
plucky badger
upbeat otter
rigid mesa
maiden fable
rigid mesa
#

:D

upbeat otter
unkempt canyonBOT
plucky badger
#

i text ;lb and await ctx.channel.purge(limit=1) this delete my message

maiden fable
#

pip install brotli is the package

upbeat otter
#

their message gets deleted

rigid mesa
# maiden fable !pypi brotli

Requirement already satisfied: brotli in c:\users\laxuzer\appdata\local\programs\python\python310\lib\site-packages (1.0.9)

upbeat otter
#

use, ctx.message.channel.delete() instead of purging a single message @plucky badger

maiden fable
#

Wait

#

U have a requirements.txt file? In it, there's _brotli instead of brotli

plucky badger
upbeat otter
maiden fable
#

Idk about u but I surely am dumb ngl

upbeat otter
sage otter
plucky badger
#

how to make it so that the message is deleted after a while

maiden fable
#

send(delete_after=3)

upbeat otter
sage otter
#

Seconds

maiden fable
#

😐 seconds ofc

#

Not everyone is as smart as u Eevee

sage otter
#

^^^

upbeat otter
slate swan
#

\🗑️

maiden fable
#

(:

slate swan
#

or maybe everyone has common sense

upbeat otter
#

,-,

slate swan
#

can i use custom emojis in my button ?

sage otter
#

Yes

slate swan
#

cool , i'll use that for deleting messages

gaunt wedge
#

i cant seem to get the message with the view in discord.ui.View, how do i take the message from discord.ui.View object?

maiden fable
#

We all dum

slate swan
upbeat otter
#

I just made fun of myself ,-,

raw latch
#

I have to choose between KVM VPS and and OpenVZ, what would you choose for a Discord bot host? 😄

sullen shoal
#

idek what those things are

#

i just want something to run my thing 24/7

sage otter
#

Yeah I’ve literally never heard of that before.

velvet tinsel
#

Greetings all

maiden fable
velvet tinsel
#

And some others

velvet tinsel
#

Hai Myxi, grinch Hunter, tylerr and Eevee

#

And Euclid

maiden fable
#

!ot

sage otter
unkempt canyonBOT
#

cogs/imagesearch/_cog.py lines 20 to 23

paginator = Paginator(ctx, embeds=embeds)
paginator.message = await ctx.send(
    embed=paginator.current_embed, view=paginator
)```
velvet tinsel
sage otter
#

i mean you don’t need a lot for a discord bot

sullen shoal
#

thanks

velvet tinsel
sage otter
#

Unless it gets big ofc

velvet tinsel
#

I had one with 700 lines

#

It’s kinda unfinished

maiden fable
#

Also keep in mind that as long as u ain't using something like PIL or Tensorflow (highly unlikely), u need more RAM since discord.py takes more RAM than CPU. My bot's ram usage is at 150 MB whereas CPU is hardly at 0.16% even when it's in 86 servers @raw latch

velvet tinsel
#

Because it had too many errors and the code was messy af

upbeat otter
sullen shoal
sage otter
#

It’s literally the same thing lmao

velvet tinsel
#

Disnake is basically discord py

raw latch
maiden fable
velvet tinsel
#

There are times when autocorrect is good and terrible

gaunt wedge
upbeat otter
velvet tinsel
#

I needed autocorrect because I wrote siscord

raw latch
velvet tinsel
#

And that sounded weird

maiden fable
velvet tinsel
maiden fable
sage otter
#

Hunter is broke. He can’t afford 1 gig.

maiden fable
sullen shoal
#

the chat has become everything except discussion about discord bots

velvet tinsel
#

I’m broke I haven’t even bought a VPS

#

!ot

unkempt canyonBOT
maiden fable
sullen shoal
#

yea

velvet tinsel
#

Myxi wanted to say ot so badly

maiden fable
#

And the chat is regarding VPS

velvet tinsel
#

But he left it to Hunter

maiden fable
#

Sooooo, uhhh

velvet tinsel
velvet tinsel
upbeat otter
#

now the chat becomes ded

maiden fable
#

Nah

#

Ok

raw latch
#

Thanks for your answers guys
@maiden fable @sage otter

velvet tinsel
#

And you retire to python general and be stupid af

maiden fable
#

It's fine

maiden fable
gaunt wedge
#

one little mini tiny question: what does ctx.send return? is it discord.Message?

maiden fable
gaunt wedge
velvet tinsel
#

Stop typing according to the laws of this chat you stop talking after a while so let’s all be silent for now

upbeat otter
#

I have a question

maiden fable
#

😐

maiden fable
sullen shoal
#

how to make a discord bot

velvet tinsel
#

I WAS GONNA SAY THAT

plucky badger
#

embed = discord.Embed(title = 'Репутация')
^
IndentationError: expected an indented block

velvet tinsel
#

you indented it wrong

maiden fable
#

!indent

unkempt canyonBOT
#

Indentation

Indentation is leading whitespace (spaces and tabs) at the beginning of a line of code. In the case of Python, they are used to determine the grouping of statements.

Spaces should be preferred over tabs. To be clear, this is in reference to the character itself, not the keys on a keyboard. Your editor/IDE should be configured to insert spaces when the TAB key is pressed. The amount of spaces should be a multiple of 4, except optionally in the case of continuation lines.

Example

def foo():
    bar = 'baz'  # indented one level
    if bar == 'baz':
        print('ham')  # indented two levels
    return bar  # indented one level

The first line is not indented. The next two lines are indented to be inside of the function definition. They will only run when the function is called. The fourth line is indented to be inside the if statement, and will only run if the if statement evaluates to True. The fifth and last line is like the 2nd and 3rd and will always run when the function is called. It effectively closes the if statement above as no more lines can be inside the if statement below that line.

Indentation is used after:
1. Compound statements (eg. if, while, for, try, with, def, class, and their counterparts)
2. Continuation lines

More Info
1. Indentation style guide
2. Tabs or Spaces?
3. Official docs on indentation

velvet tinsel
sullen shoal
#

i see

sage otter
#

Indentation errors 🚶

sullen shoal
#

thanks for the helpful message, it changed my entire life

velvet tinsel
#

Oh god I hate it when people say WHY TF IS THERE A FUCKING INDENT ERROR

maiden fable
#

Indent errors are a nightmare on mobile

velvet tinsel
velvet tinsel
maiden fable
#

I do

velvet tinsel
#

Lucky 😕

maiden fable
#

Modded my keyboard to add a Tab key

velvet tinsel
#

jam_cavedude how do you do that

plucky badger
#
        embed = discord.Embed(title = 'Репутация')
        embed.add_field(
            name=f"Выдача репутация",
            value=f"**{ctx.author.mention}**, вы не можете указать смого себя"
            )
        await ctx.send(embed = embed)
maiden fable
#

By modding

velvet tinsel
#

Teach me the way

maiden fable
#

No

sullen shoal
#

!e
def mobile_developers_be_like():
print("hello")
mobile_developers_be_like()
print("world")

velvet tinsel
sage otter
#

Just stick to the four spaces rule and your set. Just go up four everytime you need to indent.

maiden fable
#

Yea

unkempt canyonBOT
#

@sullen shoal :white_check_mark: Your eval job has completed with return code 0.

001 | hello
002 | world
velvet tinsel
#

Four Spaces

plucky badger
upbeat otter
# maiden fable Go on

why is it not working?


def client_event():
  return client.event

client_event()
function async ping[ctx];
  ping = client.ping
  ctx.await(f"My ping is {ping}")
velvet tinsel
#

!e import hello

unkempt canyonBOT
#

@velvet tinsel :white_check_mark: Your eval job has completed with return code 0.

Hello world!
maiden fable
#

Eevee typing a BIIIIIIIG message

upbeat otter
#

lol

plucky badger
# upbeat otter why is it not working? ```py def client_event(): return client.event client_...
@bot.command()
async def ping(ctx):
    await ctx.channel.purge(limit=1)
    ping = client.ws.latency

    ping_emoji = "🟩🔳🔳🔳🔳"

    if ping > 0.10000000000000000:
        ping_emoji = "🟧🟩🔳🔳🔳"

    if ping > 0.15000000000000000:
        ping_emoji = "🟥🟧🟩🔳🔳"

    if ping > 0.20000000000000000:
        ping_emoji = "🟥🟥🟧🟩🔳"

    if ping > 0.25000000000000000:
        ping_emoji = "🟥🟥🟥🟧🟩"

    if ping > 0.30000000000000000:
        ping_emoji = "🟥🟥🟥🟥🟧"

    if ping > 0.35000000000000000:
        ping_emoji = "🟥🟥🟥🟥🟥"

    message = await ctx.send('Пожалуйста подождите. . .')

    await message.edit(content = f"Мой пинг `{ping * 100:.0f}мс` {ping_emoji}  ")
velvet tinsel
maiden fable
velvet tinsel
#

You got it wrong

plucky badger
#

ping in command

plucky badger
# velvet tinsel You indented it wrong ig
@bot.command(aliases = ['rep', '+rep'])
async def __rep(ctx, member: discord.Member = None):
    await ctx.channel.purge(limit=1)
    if member is None:
        embed = discord.Embed(title = 'Репутация')
        embed.add_field(
            name=f"Выдача репутация",
            value=f"**{ctx.author.mention}**, укажите участника сервера"
            )
        await ctx.send(embed = embed)
    else:
        if member.id == ctx.author.id:
        embed = discord.Embed(title = 'Репутация')
        embed.add_field(
            name=f"Выдача репутация",
            value=f"**{ctx.author.mention}**, вы не можете указать смого себя"
            )
        await ctx.send(embed = embed)
    else:
        cursor.execute("UPDATE users SET rep = rep + {} WHERE id = {}".format(1, member.id))
        connection.commit()
        embed = discord.Embed(title = 'Репутация')
        embed.add_field(
            name=f"Выдача репутация",
            value=f"**{ctx.author.mention}**, вы не можете указать смого себя"
            )
        await ctx.send(embed = embed)
maiden fable
#

Okay Eevee gonna help y'all, I am out, gotta do some things

spark mortar
#

TypeError: 'send_messages_in_threads' is not a valid permission name.

velvet tinsel
#

Basically, according to the laws of getrobidalisnestrgo you have to carry x so that y becomes the tangent of z so you can use the quadratic formulae to find the value of x, y and z

velvet tinsel
#

Yeah ok I’m gonna leave now

#

Bye Eevee have a nice day

sage otter
#

I die inside everytime someone uses interpolation in sql strings instead of the builtin placeholders

upbeat otter
maiden fable
maiden fable
#

That's why... use discdb 😄

velvet tinsel
#

Fuck I’m back

sullen shoal
#

hunter gonna hunt for the missing } in his bio now

velvet tinsel
plucky badger
maiden fable
velvet tinsel
#

Hunter got mad at me

upbeat otter
velvet tinsel
#

Like really mad

upbeat otter
maiden fable
#

And yea that too

velvet tinsel
velvet tinsel
upbeat otter
velvet tinsel
upbeat otter
#

....

plucky badger
#

my ping 11

upbeat otter
#

~d discord.ext.commands.Bot.latency

velvet tinsel
#

Round it first

plucky badger
#

bot ping 91

upbeat otter
#

oof

velvet tinsel
#

😳

maiden fable
unkempt canyonBOT
#

property latency: float```
Measures latency between a HEARTBEAT and a HEARTBEAT\_ACK in seconds.

This could be referred to as the Discord WebSocket protocol latency.
maiden fable
#

It's already the websocket latency

slate swan
#

What fork is the best rn?

sullen shoal
#

idk maybe disnake

grim oar
sage otter
#

That’s disgusting

#

Never come in this chat again with that shit

slate swan
#
name = "│⏳ {}".format(member.name)
output = await after.channel.clone(name=name, reason="Joined in Temp-Channel")
    if output:
       channel_id = output.id
       print(channel_id)
       id = tchannel.append(channel_id)
       print(id)

Hey, could someone tell me why None is output when I want to store the channel_id of a channel in a list?

sullen shoal
#

whats hata

#

fork or completely new thing?

grim oar
#

latter

sage otter
#

It’s a library Danny shit on a long time ago

sullen shoal
#

oh

velvet tinsel
#

Hata

sullen shoal
#

does it still work

grim oar
#

Danny's boot licker?

sage otter
#

Said the code was complete and utter garbage

velvet tinsel
sullen shoal
#

oh

grim oar
sage otter
#

Let’s go with that then.

pulsar shell
#

Please

grim oar
#

why u here

#

😩

grim oar
#

it gud man, let's not fight over it 100th time

#

it's not even a bloat now, the asyncio stuff is a completely different repo

sage otter
#

Or is that nextcord 🤔

upbeat otter
#

me who doesnt even know what views are like

sage otter
#

They nice.

#

People just don’t use them because they think they are over complicated

sage otter
plucky badger
#

how to make the message disappear after a while

upbeat otter
grim oar
sullen shoal
sage otter
upbeat otter
#

.....

sullen shoal
#

and disnake has views

plucky badger
#

how to make the message disappear after a while

grim oar
#

send() has a delete_after kwarg

upbeat otter
#

Ohh dropdowns

grim oar
#

Wtf was it

plucky badger
#

ble

sage otter
#

Messageable

sullen shoal
#

just do TextChannel.send

broken plinth
#

hello i have a problem with my bot Alexa 121 i'm trying to get her online please help me

sage otter
#

discord.abc.Messageable

plucky badger
broken plinth
#

@novel apex

grim oar
#

!d discord.abc.Messageable.send

unkempt canyonBOT
#

await send(content=None, *, tts=None, embed=None, embeds=None, file=None, files=None, stickers=None, delete_after=None, nonce=None, allowed_mentions=None, reference=None, mention_author=None, view=None)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Sends a message to the destination with the content given.

The content must be a type that can convert to a string through `str(content)`. If the content is set to `None` (the default), then the `embed` parameter must be provided.

To upload a single file, the `file` parameter should be used with a single [`File`](https://discordpy.readthedocs.io/en/master/api.html#discord.File "discord.File") object. To upload multiple files, the `files` parameter should be used with a [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.9)") of [`File`](https://discordpy.readthedocs.io/en/master/api.html#discord.File "discord.File") objects. **Specifying both parameters will lead to an exception**.

To upload a single embed, the `embed` parameter should be used with a single [`Embed`](https://discordpy.readthedocs.io/en/master/api.html#discord.Embed "discord.Embed") object. To upload multiple embeds, the `embeds` parameter should be used with a [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.9)") of [`Embed`](https://discordpy.readthedocs.io/en/master/api.html#discord.Embed "discord.Embed") objects. **Specifying both parameters will lead to an exception**.
broken plinth
#

umm

plucky badger
#

delete_after=?

upbeat otter
#

@broken plinth whats the issue?

broken plinth
#

umm my bot

hushed glacier
#

hi

broken plinth
#

She wont get online

grim oar
upbeat otter
grim oar
#

🧠

broken plinth
#

umm yea ther eis a script

#

but i used scratch for discord

plucky badger
#
    else:
            cursor.execute("UPDATE users SET rep = rep + {} WHERE id = {}".format(1, member.id))
            connection.commit()
            embed = discord.Embed(title = 'Репутация')
            embed.add_field(
                    name=f"Выдача репутация",
                    value=f"**{ctx.author.mention}**, кинул репуцацию **{member.mention}**"
                    )
            await ctx.send(embed = embed, delete_after=5)
broken plinth
#

And i runed it

#

it wont work

sage otter
#

You what

broken plinth
#

it's still onlie

sage otter
#

Scratch?

broken plinth
#

Scratch for discord

sage otter
#

Like the learning language Scratch?

grim oar
#

Yes

broken plinth
#

Id like to share

#

my screen

#

to show u

sage otter
#

Send a ss

#

Or if possible send in a code block

broken plinth
#

yea but how

#

how do I

#

send a ss

#

Screen shot

upbeat otter
sage otter
#

Actually I’m not sure if that’s even appropriate here

broken plinth
#

hmm ook

sage otter
#

Scratch isn’t python

broken plinth
#

umm

#

TIS IS WY IM HERE ACTUALLY

#

I KNEED TO KNOW HOW TO CODE ON PYTHON SO I CAN PUT THE SCRIPT RUNNING

#

O_O

#

... but its so complicated looking

#

I wanted to learn how to code for my bot

#

😦

#

...

#

nobody here?

#

sigh nvm

sage otter
#

!resources

unkempt canyonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

broken plinth
#

???

sage otter
#

Start there.

broken plinth
#

thankspy_guido

#

tysm

stark lintel
#

Hey, i got a question for anyone willing to answer...

broken plinth
#

...

gaunt wedge
#

how do i assign a task to do after 30 seconds using discord.ext.tasks just once?

slate swan
#
    return await interaction.original_message().delete()
AttributeError: 'coroutine' object has no attribute 'delete'``` ![PES_Think](https://cdn.discordapp.com/emojis/808622883847798804.webp?size=128 "PES_Think")
manic wing
boreal ravine
stark lintel
#

I'm trying to make an embed command for my discord bot, and I want it to mention like @.everyone or something, but when it actually runs, it looks like this...

slate swan
manic wing
#

!d asyncio.create_task || you can use this + await asyncio.sleep(30)

stark lintel
#

how do I make it look more like dyno's announcements

unkempt canyonBOT
#

asyncio.create_task(coro, *, name=None)```
Wrap the *coro* [coroutine](https://docs.python.org/3/library/asyncio-task.html#coroutine) into a [`Task`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task "asyncio.Task") and schedule its execution. Return the Task object.

If *name* is not `None`, it is set as the name of the task using [`Task.set_name()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.set_name "asyncio.Task.set_name").

The task is executed in the loop returned by [`get_running_loop()`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop "asyncio.get_running_loop"), [`RuntimeError`](https://docs.python.org/3/library/exceptions.html#RuntimeError "RuntimeError") is raised if there is no running loop in current thread.

This function has been **added in Python 3.7**. Prior to Python 3.7, the low-level [`asyncio.ensure_future()`](https://docs.python.org/3/library/asyncio-future.html#asyncio.ensure_future "asyncio.ensure_future") function can be used instead...
slate swan
gaunt wedge
slate swan
slate swan
manic wing
slate swan
#

thanks

lost wolf
#

how to use the better help thing that changes the default python help command.

gaunt wedge
stark lintel
#

what do you mean. I am very much a beginner. This will be the first command i make that uses arguments

slate swan
#

why does it only delete the ctx author message but not the message which has the interaction

class MyButton(Button):
    def __init__(self,ctx):
        self.ctx = ctx
        super().__init__(style=discord.ButtonStyle.danger,emoji=f"{random.choice(Emojis.trash_emojis)}")
    async def callback(self, interaction):
        if interaction.user.id == self.ctx.author.id:
            await self.ctx.message.delete()
            return await interaction.delete_original_message()
        return await interaction.send_message(f"{random.choice(Replies.error_replies)} {random.choice(Emojis.pepe_sad_emojis)}",ephemeral=True)
manic wing
#

something like that - idk what betterhelp is tho lol

#

!pypi discord-pretty-help

unkempt canyonBOT
boreal ravine
#

hm

manic wing
stark lintel
sage otter
gaunt wedge
stark lintel
#

oh, let me go try that, thank you!!!

manic wing
#

await ctx.send(ctx.author.mention, embed=embed)

gaunt wedge
stark lintel
#

lmao

manic wing
#

thats in reply

gaunt wedge
manic wing
#

well it works

#

but its also an arg

mental escarp
#

uhm...

gaunt wedge
manic wing
mental escarp
#

why is the ")" under red?

mental escarp
gaunt wedge
mental escarp
#

whats that

gaunt wedge
sage otter
#

Dude that indention has to be the most cursed thing I’ve ever seen

mental escarp
#

yes, but if i add/remove them there will be other errors

sage otter
#

You have extra spaces, you got 4 spaced and 2 spaced intentions.

mental escarp
#

that means?

gaunt wedge
manic wing
#

why the fuck is it all purple except for the parts that should be purple

mental escarp
#

how pain

manic wing
#

also why do you have a print just chilling at the top

sage otter
slate swan
#

How are indentations so hard when text editors and ides after you press enter they indent it but you still got it wrong?

manic wing
#

omg dude did def init

lost wolf
mental escarp
#

srry i watch yt

lost wolf
#
@client.command()
async def Test(ctx: commands.Context):
    embed = discord.Embed(title="Hello", description="World!")
    embed.add_field(name="test", value="TEst", inline=True)
    await ctx.send(embed)
slate swan
slate swan
gaunt wedge
manic wing
gaunt wedge
#

await ctx.send(embed=embed)

slate swan
#

🕴️

gaunt wedge
#

ow man

lost wolf
#

thanks

slate swan
stark lintel
#

how would I go about making a command that ran something like this

#

to make an annoucement with pings and mentions

slate swan
#

You use the mention attr in embeds🕴️

#

Wait just type it in

stark lintel
#

i know that, but for the async def announce(<what would i put in here>)

upbeat otter
slate swan
#

Their isnt mentions

slate swan
stark lintel
#

what does the * do (sorry again, im learning)

slate swan
#

A positional arg would be fine

upbeat otter
plucky badger
#

how to make a command pay?

upbeat otter
gaunt wedge
slate swan
plucky badger
#

transfer money

upbeat otter
#

huh...

stark lintel
#

and whats a kwarg

gaunt wedge
plucky badger
#

pay user {amount}

upbeat otter
gaunt wedge
#

oh you mean in-bot monie

plucky badger
stark lintel
upbeat otter
#

lol, just minus plus the amount from the required accounts @plucky badger

plucky badger
#

bruh

upbeat otter
#

lol

plucky badger
#

idk how

upbeat otter
slate swan
plucky badger
stark lintel
upbeat otter
#

oops

stark lintel
#

what does it mean to make something a kwarg

gaunt wedge
# stark lintel whats that

a kwarg is arguments that are not positional function(kwarg=kwarg)
a positional argument doesnt need to be specified function(arg)

slate swan
#

@upbeat otter your checking docs for a kwarg?

unkempt canyonBOT
#
Bad argument

Converting to "int" failed for parameter "pep_number".

stark lintel
#

oh?

upbeat otter
#

I mean yes

upbeat otter
#

bye

slate swan
#

@stark lintel A kwarg is a keyword argument that gets called by its name and doesnt need to be in a certain position as a positional argument

stark lintel
#

ohhh

shadow wraith
plucky badger
stark lintel
#

lmao no

shadow wraith
stark lintel
#

these words are too big

shadow wraith
slate swan
#

In this step-by-step tutorial, you'll learn how to use args and kwargs in Python to add more flexibility to your functions. You'll also take a closer look at the single and double-asterisk unpacking operators, which you can use to unpack any iterable object in Python.

#

🕴️

shut mango
#

How do I make unban command?

slate swan
manic wing
gaunt wedge
#
function(variable1, kwarg=variable2)
#        ^          ^ Kwarg argument
#    positional```
manic wing
#

are you crazy

gaunt wedge
slate swan
oak warren
#

wtf ...

slate swan
#

😭

oak warren
#

that is not required

manic wing
gaunt wedge
#

bro just unban the id.,,

unkempt canyonBOT
#

await bans()```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Retrieves all the users that are banned from the guild as a [`list`](https://docs.python.org/3/library/stdtypes.html#list "(in Python v3.9)") of [`BanEntry`](https://discordpy.readthedocs.io/en/master/api.html#discord.BanEntry "discord.BanEntry").

You must have the [`ban_members`](https://discordpy.readthedocs.io/en/master/api.html#discord.Permissions.ban_members "discord.Permissions.ban_members") permission to get this information.
slate swan
#

Ik i was joking🕴️

gaunt wedge
manic wing
#

nah you werent mate

slate swan
slate swan
oak warren
#

sus

#

i come to see that you need a db to unban someone

slate swan
#

Was supposed to be a joke but you guys cant take one🚶

oak warren
#

i am out

slate swan
#

Lol

plucky badger
#

how to create a command to transfer money in a discord bot?

shadow wraith
slate swan
#

😭

plucky badger
shadow wraith
#

if not we just don't make spoonfeedable code for you lmao

plucky badger
slate swan
#

Isnt the coro to unban like await unban(**kwargs)

plucky badger
#

virtual money for discord server

shadow wraith
#

try brainstorming and making one

#

then show it to us, we don't know much about your bot and code

manic wing
unkempt canyonBOT
#

await unban(user, *, reason=None)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Unbans a user from the guild.

The user must meet the [`abc.Snowflake`](https://discordpy.readthedocs.io/en/master/api.html#discord.abc.Snowflake "discord.abc.Snowflake") abc.

You must have the [`ban_members`](https://discordpy.readthedocs.io/en/master/api.html#discord.Permissions.ban_members "discord.Permissions.ban_members") permission to do this.
shadow wraith
#

because we don't know the money variable, we don't know if you indexed a tuple (🕴️)

slate swan
#

Ban and guild ban?

unkempt canyonBOT
slate swan
#

🕴️

shadow wraith
#

🕴️

slate swan
shadow wraith
#

you didn't see that

shadow wraith
slate swan
shadow wraith
#

and its sql so idk how to help

plucky badger
#

😦

oak warren
#

imagine using discord components

shadow wraith
oak warren
#

^^

slate swan
oak warren
#

no u

shadow wraith
slate swan
#

Text channel > any db🕴️

plucky badger
shadow wraith
#

!e

mytextchannel = bot.get_channel(483958405854385093)
await self.mytextchannel.excute('bruh')
unkempt canyonBOT
#

@shadow wraith :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 2
002 | SyntaxError: 'await' outside function
slate swan
#

🚶

oak warren
gaunt wedge
slate swan
#

The finale best part

shadow wraith
#

i'm a somewhat chad because real chads only find defining the args in @discord.ui.select easy

slate swan
shadow wraith
#

actually im being srs no

gaunt wedge
slate swan
slate swan
shadow wraith
slate swan
shadow wraith
slate swan
#

!ot

unkempt canyonBOT
slate swan
#

🕴️

shadow wraith
#

🕴️ your as specific as the decorator for selects in dpy 2.0

slate swan
#

Welp im going to use a db to store a db so the dbs store more dbs🕴️

slate swan
shadow wraith
gaunt wedge
slate swan
gaunt wedge
slate swan
shadow wraith
#

Maybe json 🕴️

slate swan
#

Am i json🕴️

shadow wraith
#

the trilogy of jsons are complete.

gaunt wedge
#

ok

slate swan
shadow wraith
#

now we have to figure out how many kwargs can you specify in a @discord.ui.select

slate swan
#

Imagine if someone used a db to send a msg:sob:

slate swan
#

Json is the best db

velvet tinsel
#

valid

#

json is an amazing db

slate swan
#

Fr

#

🕴️

velvet tinsel
#

yeaaaahh

shadow wraith
velvet tinsel
#

!ot

unkempt canyonBOT
slate swan
#

🚶

velvet tinsel
#

anyways

gaunt wedge
velvet tinsel
#

I hate python YT tutorials

#

for discord py

#

some of them are ok ig but...

gaunt wedge
slate swan
#

🚶

velvet tinsel
#

anyways

slate swan
#

#lucassimp

brave flint
#

did anyone use instaloader for discord bot?

sage otter
#

Tf is that.

slate swan
brave flint
shadow wraith
slate swan
slate swan
velvet tinsel
#

they're like yeahhhhhhhh discord.py dead af let's import some shitty unknown module made by not_hacker_69_420 and then we do stuff like bot = commands.Bot() and yeah @bot.event you know all these stuff and then paste some fucking piece of code and boom you made dank fucking memer be sure to like and subscribe

brave flint
sage otter
#

Does Instagram even allow scraping

brave flint
slate swan
velvet tinsel
shut mango
#

How do I make a command work only for certain roles?

slate swan
#

And what are you gonna scrape 😳

slate swan
plucky badger
brave flint
velvet tinsel
slate swan
brave flint
#

hehe

velvet tinsel
slate swan
#

We prohibit crawling, scraping, caching or otherwise accessing any content on the Service via automated means, including but not limited to, user profiles and photos (except as may be the result of standard search engine protocols or technologies used by a search engine with Instagram's express consent).

Instagram ToS

velvet tinsel
#

something has_role()

#

I think it exists

shadow wraith
unkempt canyonBOT
#

@discord.ext.commands.has_role(item)```
A [`check()`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.check "discord.ext.commands.check") that is added that checks if the member invoking the command has the role specified via the name or ID specified.

If a string is specified, you must give the exact name of the role, including caps and spelling.

If an integer is specified, you must give the exact snowflake ID of the role.

If the message is invoked in a private message context then the check will return `False`.

This check raises one of two special exceptions, [`MissingRole`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.MissingRole "discord.ext.commands.MissingRole") if the user is missing a role, or [`NoPrivateMessage`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.NoPrivateMessage "discord.ext.commands.NoPrivateMessage") if it is used in a private message. Both inherit from [`CheckFailure`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.CheckFailure "discord.ext.commands.CheckFailure").

Changed in version 1.1: Raise [`MissingRole`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.MissingRole "discord.ext.commands.MissingRole") or [`NoPrivateMessage`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.NoPrivateMessage "discord.ext.commands.NoPrivateMessage") instead of generic [`CheckFailure`](https://discordpy.readthedocs.io/en/master/ext/commands/api.html#discord.ext.commands.CheckFailure "discord.ext.commands.CheckFailure")
shadow wraith
#

🕴️

velvet tinsel
slate swan
#

Guess it is

velvet tinsel
#

:)

plucky badger
velvet tinsel
#

finally I got something right faster than you

slate swan
#

Those questions are older than you

plucky badger
slate swan
#

!rule 5

unkempt canyonBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

slate swan
#

Im older than you🚶 🕴️

#

You're using youtube_dl

#

Which is against YouTube's Terms of Service

velvet tinsel
slate swan
#

And therefore we can't help you

gaunt wedge
slate swan
plucky badger
slate swan
plucky badger
#

where play command?

slate swan
#

Look your imports :)

royal jasper
#

mhm... but after restart the bot (for updates) the var is reseted, yeah?

slate swan
#

So correct hes 5🕴️

daring olive
#

stay on topic please

plucky badger
slate swan
royal jasper
slate swan
royal jasper
#

ok

slate swan
#
[...]
import connect 
import voice 
import youtube_dl # uh oh what's this O.o
import random
import time
import pyowm
plucky badger
slate swan
#

Using youtube_dl therefore your project breaches the terms of service of YouTube

#

If you break tos withing discord i think you break their tos

#

Is that a thing?

slate swan
#

I remember being in tos

plucky badger
#

CakeyBot#2608 verifed bot

#

music bot

slate swan
#

Good to know

#

Depends

#

Now stay on topic please

sage otter
#

What does that have to do with anything lmao.

plucky badger
slate swan
#
[...]
import connect 
import voice 
import youtube_dl # uh oh what's this O.o
import random
import time
import pyowm
plucky badger
#

import is, but there are no teams

slate swan
#

Allow me to doubt

plucky badger
#

import is, but there are no teams

slate swan
#

🕴️

plucky badger
#

import is, but there are no teams

slate swan
#

Spamming won't prove you're not using it

daring olive
#

"import is, but there are no teams" what does this mean?

plucky badger
slate swan
#

Probably imported but not used

slate swan
#

Which is really doubtful

plucky badger
#

I'm too lazy to remove unnecessary imports

slate swan
#

Why did you imported it then bravemmlol

#

Takes like 4 secs 🕴️

#

Downloaded an entire bot from GitHub?

plucky badger
#

this code was written before the update terms

sage otter
#

Man that code really is something. Db shit in the on_ready(), interpolation on sql strings

plucky badger
slate swan
#

And now please don't take us for fools

#

What's the best way to store a token?

#

;play - воиспроизвести музыку (перед тем как писать зайдите в канал)
;stop - остановить музыку
;join - бот войдет в твой канал
;leave - бот выйдет с твоего канала
;skip - пропустить песню

slate swan
stark lintel
#

what am i doing wrong?

slate swan
#

how can I get the token from a env file? whats the module called

slate swan
slate swan
#

So stop asking further please, thanks

plucky badger
slate swan
#

No I'm not unfortunately for you

slate swan
slate swan
#

You're taking of for stupid people, so just move on

slate swan
plucky badger
slate swan
stark lintel
plucky badger
#

you see commands play?

slate swan
plucky badger
#

no ?

slate swan
#

Move on please

#

lemme google rq how to use env files

plucky badger
#

move you if u stupid

slate swan
#

Your project is breaching YouTube's terms of service

sage otter
#

@daring olive are you allowed to mute him or something?

plucky badger
slate swan
#

Your code says it

slate swan
plucky badger
manic wing
#

!ytdl

unkempt canyonBOT
#

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
plucky badger
slate swan
#

Guys please be respectful 🕴️

stark lintel
#

okimii i need help again lemon_angrysad

slate swan
#

<@&831776746206265384> Could someone say to @lqwxx//#2081 that youtube_dl is against YouTube's terms of service and therefore against #rules 5. The code clearly says it has play command (see help command). And is also being rude/toxic for no special reason.

plucky badger
#

😄

daring olive
#

!mute 632869335882399775 6h as others have stated, using ytdl or similar is against our #rules. additionally do not be rude to other users that are explaining this to you

unkempt canyonBOT
#

:incoming_envelope: :ok_hand: applied mute to @plucky badger until <t:1639257670:f> (5 hours and 59 minutes).

slate swan
#

Thanks 59

stark lintel
slate swan
slate swan
stark lintel
slate swan
#

Dont know

sage otter
#

For consume rest

slate swan
#

2 hours ago i was asleep 🕴️

stark lintel
#

rip same

sage otter
#

**message makes it a kwarg

stark lintel
#

ok, imma go fix that real quick

slate swan
#

Ik

sage otter
#

*args - tuple
**kwargs - dict

slate swan
#

Lol

sage otter
stark lintel
#

@sage otter like this, or two astericks

sage otter
#

Yeah

#

Also pass context is redundant

slate swan
#

How do I add reactions to a message?

stark lintel
#

?

sage otter
stark lintel
#

oh, ok

#

thanks

sage otter
stark lintel
#

let me go try that

slate swan
stark lintel
#

црут ш кгт ершы

slate swan
#

Try it out?

slate swan
stark lintel
#

sorry

#

accidentaly switched to my russian keyboard

#

anyways...

slate swan
#

Its alr

slate swan
# slate swan Yes
Command raised an exception: HTTPException: 400 Bad Request (error code: 10014): Unknown Emoji
stark lintel
#

what i was trying to say...

peak loom
#

I keep getting this error everytime !w leaderboard is ran

stark lintel
#

when i run this, i still get the same error as before

sage otter
#

You can’t pass the emojis like that.

slate swan
#

oh

stark lintel
#

and idk why

#

it keeps saying something about author

#

or whatever