#discord-bots

1 messages ยท Page 918 of 1

thorn ore
#

No problem

#

What help in this bro?

bleak karma
thorn ore
bleak karma
#

my question i mean

thorn ore
#

You question is tooo complecated

bleak karma
#

its still abt discord bots soo-

thorn ore
#

K

cosmic agate
#

ok

#

guys

unkempt yacht
#

yes

#

now i get an error

#

code:

@commands.command(name="support", aliases=["sup"])
@commands.has_permissions(manage_messages=True)
async def support(ctx: commands.Context, self):
  embed=discord.Embed(title=":BK_blobhelp: **Support** :BK_blobhelp:", description=":BK_redline: __Server Support__ \n > Ask Us Your Questions In This Channel\n> It Can Be Related To The Server And Bots\n> Reports Can Be Made Here\n\n:BK_yellowline: __Claiming Perks__\n> State which perk you wish to claim.\n> State the details regarding the perk.\n\n:BK_blueline: __Reports__\n> To Make A Report, Open a 'Report Ticket' in [#954330102756429864](/guild/267624335836053506/channel/954330102756429864/)", color="0x36393f")
      await ctx.send(embed=embed)
      await ctx.message.add_reaction(":tick:")```
paper sluice
#

how to speed up creation of embeds? they seem to take sometime to send

unkempt yacht
#

done

paper sluice
#

wdym

unkempt yacht
#

the cog appears on the help but no embed is sent

unkempt yacht
brittle axle
#
@bot.slash_command(name = "rickroll", description="Rickrolls you", guild_ids=[808704986485620736, 910811019608223754, 947151111037526096])
async def rickroll(interaction: Interaction):
    await interaction.response.send_message("https://tenor.com/view/rick-astly-rick-rolled-gif-22755440"
                   )```
paper sluice
#

ah cant do that, i require it to have multiple fields

brittle axle
#

?

unkempt yacht
paper sluice
#

ya i understand that, what i mean is it wouldnt look very nice and the line would be like 100 chars long.. any other way?

brittle axle
#

nvm it was a http 400 error

paper sluice
#

k

supple thorn
unkempt yacht
#

oh but it can't be the bots permissions as it has admin

unkempt yacht
paper sluice
#

how does @unkempt canyon do it, i dont imagine them using one-liner for all embeds

unkempt yacht
#

where

paper sluice
#

oh, so they cache the embed

#

ah didnt think of that, i was storing the data not embed

#

cool

hasty crest
#

Don't they already get the role when they have vanity in their status?
Just check if the user has the role, and if it has the role, just ignore them

#

I believe they meant that if a user already got pinged before and got their roles and everything, not to get pinged again and so on

hasty crest
#

@bleak karma Tell me if it works

unkempt yacht
#

finally, i found the error! It was the color part

proper acorn
junior verge
#
from utils.util import Pag
``` How do I install utils.util?
proper acorn
#

@slate swan help me pls

#

ur god

inner epoch
#

Is it possible for bot to reply to private message....as in if someone sends "hey" then bot replies "hey"?

narrow grail
junior verge
#

Don't think so tbh

proper acorn
inner epoch
#

Umm let me try that!!

heavy folio
#

no

#
if m.author.bot:
    return```
unkempt canyonBOT
#

property bot```
Equivalent to [`User.bot`](https://discordpy.readthedocs.io/en/master/api.html#discord.User.bot "discord.User.bot")
proper acorn
#

tysm

heavy folio
#

it's kinda dumb to warn bots for using bl word

proper acorn
#

this right?

heavy folio
#

in front, do if message.author.bot lmao

proper acorn
#

or i should pute under message.channel.send()

narrow grail
heavy folio
#

you want it to check BEFORE anything gets deleted, so at the top

proper acorn
#

still not work, my bot now he not warn his self but he delete self message

#

still delete bad word message but warn not work

#

he delete after send

maiden fable
proper acorn
#

wdym?

#

a ok

maiden fable
proper acorn
#

althought its work but

#

he still warn when i say "as"

maiden fable
#

Add this if statement at the top:

if message.author.bot: return
proper acorn
#

still not work

thorn ore
#

Hi

#

What you want help?

slate swan
#

hi

#

hi ash

slate swan
# proper acorn
@bot.listen("on_message")
async def whatever(message):
  if message.author.bot or message.author.id == bot.user.id:
     return
  if any(word in message.content for word in badword):
    await message.delete()
slate swan
alpine furnace
#

Who is ash

#

Probably someone who joined an English language discord server

slate swan
alpine furnace
hoary cargo
# proper acorn

Lmao
You check for a certain user after you already delete the message TrollGlitch

slate swan
#

lol

long whale
#

Ahh thnx a lot Ryan

slate swan
#

๐Ÿ‘

hoary cargo
slate swan
slate swan
maiden fable
#

What is happening here

slate swan
#

idk

maiden fable
#

Please take this to an OT channel if the convo isn't related to the topic of the channel, that is, discord bots

slate swan
#

ok

#

wc

slate swan
#

a guy asking for help

narrow grail
slate swan
narrow grail
#

Okey okey

slate swan
#

nvmd late

#

how do i make

#

admins get ignored?

slate swan
#

!d discord.Member.guild_permissions

unkempt canyonBOT
#

property guild_permissions```
Returns the memberโ€™s guild permissions.

This only takes into consideration the guild permissions and not most of the implied permissions or any of the channel permission overwrites. For 100% accurate permission calculation, please use [`abc.GuildChannel.permissions_for()`](https://discordpy.readthedocs.io/en/master/api.html#discord.abc.GuildChannel.permissions_for "discord.abc.GuildChannel.permissions_for").

This does take into consideration guild ownership and the administrator implication.
slate swan
#

admins = id, id, id

#

Wut abt users?

slate swan
#

I meant "get bank data..."

heavy folio
#

messed up indents

slate swan
#

ok but i want to make admins get ignored

#

and displays normal users

#

if user in admins:
continue

slate swan
#

it works like that too

slate swan
slate swan
unkempt canyonBOT
#

@slate swan :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
slate swan
#

eh never tried dis b4

#

nvmd

#

lmao

slate swan
#

so uh i tried and it still shows admins

#

he think he will get error

#

xD

#

Lmao

#

lemme show code

#

!paste

inner epoch
#

is there a way to mention a server in pms as we mention <#abc> channels in server?

slate swan
#

awofosuwuh

#

gg got the token

#

lmao stop

#

ok how do i make admins ignored in user or users

slate swan
#

imagine if bot crash

slate swan
#

bruh it just worked fine like few mins ago

#

member.

slate swan
bleak karma
slate swan
maiden fable
#

imagine member being user

slate swan
#

lol

maiden fable
slate swan
slate swan
slate swan
#

intents.member = True

#

use getch

hasty crest
maiden fable
slate swan
#

ok it works

bleak karma
slate swan
#

but now how the heck i make admins get ignored

maiden fable
slate swan
#

maybe check perms

slate swan
slate swan
#

bro

slate swan
#
bot = Bot()

async def getch(*, user_id: int):
  return bot.get_user(user_id) or await bot.fetch_user(user_id)

or just subclass Bot and add a method GWcmeisterPeepoShrug

#

its currency bot right

maiden fable
slate swan
#

admins is admins = id, id ,id

maiden fable
slate swan
#

I'm high

#

await getch(925079016174682213)

maiden fable
slate swan
#

what

#

i have no understand

slate swan
#

bruh

#

POGGERS use utils instead of getchidk

#

i want that admins are being ignored in the user
admins = 859353,53295,53295238

slate swan
maiden fable
#

That is all wrong...

slate swan
maiden fable
#

๐Ÿ˜” Ashley gonna help u I am out

slate swan
#

Saad may do the honours

#

if not 493451846543998977:
return 925079016174682213

maiden fable
#

What the

slate swan
#

lol

slate swan
slate swan
slate swan
# slate swan uh idk

so if user returns id then just checks if the id in the list(admins) for examplepy admins = [1, 2, 3] for user in users: if user in admins: continue #eh i hope this is going to help

cosmic agate
#

guys how to make reminder command with button that will remind when time over?

maiden fable
#

@cosmic agate do u know how to make a mute command?

unkempt canyonBOT
#

Hey @slate swan!

It looks like you tried to attach file type(s) that we do not allow (.exe). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.

Feel free to ask in #community-meta if you think this is a mistake.

slate swan
#

idk

slate swan
slate swan
# slate swan like this?

yes but name = ... #all other stuff like total leader and the other stuff should be outside the if statement

slate swan
#

@maiden fable @slate swan wanna enjoy? kana_sip

#
            try:
                 await user.add_roles(role2) 
                 b = disnake.Embed(title=f"Muted {user}",color=green,timestamp=datetime.utcnow())
                 await ctx.reply(embed=b)
            except:
                     role = disnake.utils.get(ctx.guild.roles, name="Muted")
                     await role.edit(position=ctx.me.top_role.position+1)
                     b = disnake.Embed(title=f"Muted {user}",color=green,timestamp=datetime.utcnow())
                     await ctx.reply(embed=b)
            else:     
                  b = disnake.Embed(title=f"Cannot Mute {user}",color=red,timestamp=datetime.utcnow())
                  await ctx.reply(embed=b)
slate swan
slate swan
#

pffttt

slate swan
cosmic agate
maiden fable
# cosmic agate yes sir

Same logic as a mute command, just it sends a message instead of removing roles after x time

slate swan
slate swan
#

๐Ÿ˜ถ

slate swan
#

typing the link

maiden fable
#

?

bleak karma
cosmic agate
#

idk how to make via a certain time

maiden fable
#

easiest way is to use asyncio.sleep

slate swan
maiden fable
#

Do u even know the context of the convo....?

slate swan
#

stop

maiden fable
#

He wanna make a remind command

maiden fable
#

๐Ÿ˜” Then stop

slate swan
slate swan
maiden fable
#

Don't make me start ignoring u

slate swan
slate swan
maiden fable
#

continue keyword just skips the current iteration and starts a new one

slate swan
maiden fable
slate swan
#

bruh

#

i have no idea how to do that

#

bro_whut btw do have something like

slate swan
hasty crest
slate swan
#

ok

bleak karma
slate swan
slate swan
maiden fable
slate swan
#

imagine having big screen

slate swan
#

idk how to explain

hoary cargo
#

๐Ÿคฎ

slate swan
maiden fable
hoary cargo
#

stop chatting, do it mentally

maiden fable
#

I mean, I got access to the intent easily

maiden fable
slate swan
#

explanation 1000

#

imagine having hugeee screen or full zoom out

slate swan
hoary cargo
hoary cargo
maiden fable
hoary cargo
#

๐Ÿ—ฟ

maiden fable
slate swan
hoary cargo
maiden fable
#

Ah my bad

maiden fable
hoary cargo
#

the privacy policy and tos is a pain in the ass lol it's just a bot

slate swan
maiden fable
maiden fable
#

But then

hoary cargo
slate swan
maiden fable
slate swan
slate swan
hoary cargo
maiden fable
thorn ore
slate swan
slate swan
thorn ore
#

Nothin

hoary cargo
thorn ore
#

Yhe

maiden fable
slate swan
maiden fable
#

Cz they are made seriously

slate swan
#

nvm kek

slate swan
maiden fable
#

Gonna redownload those, thanks for reminding

maiden fable
#

RIP I FORGOT THE PASSWORD

#

Ayo help me someone

hoary cargo
#

f

slate swan
slate swan
maiden fable
#

Nvm, I remember it

slate swan
#

forget the password and reset it GWcmeisterPeepoShrug

maiden fable
#

Meh, might use google instead to see my password

hoary cargo
#

THE NEW PASSWORD CAN'T BE THE OLD PASSWORD

maiden fable
#

IKR

slate swan
#

ok no one help

#

i give up ๐Ÿ‘‹

slate swan
#

lol

maiden fable
slate swan
#

!ot

unkempt canyonBOT
slate swan
#

?

hoary cargo
#

help him
ot
lmao

slate swan
#

huh
?

maiden fable
slate swan
#

sad

maiden fable
hoary cargo
slate swan
#

lol

slate swan
maiden fable
#

Lmaooo thanks

hoary cargo
#

you gotta go but you still here sad

slate swan
#

..

slate swan
hoary cargo
#

so you don't want help

#

ok

slate swan
maiden fable
slate swan
proud rain
#

how to put slash commands in cogs?

slash = SlashCommand(Client, sync_commands=True)

@slash.slash(description="Viser bottens latency.")
async def ping(ctx):
    await ctx.send(f'Bot speed - {round(Client.latency * 1000)}ms')```
slate swan
#

put like any other

#

๐Ÿ˜Ž ๐Ÿ”ฅ

normal folio
slate swan
#

@slate swan i suggest claim a help channel

#

no one will understand ๐Ÿ’€

slate swan
#

yes

slate swan
#

ok

slate swan
#

its turned on bruh

slate swan
#

intents= discord.Intents.default()
intents.members = True

slate swan
#

u ned to put in code to

slate swan
#

what

#

oh lol

hoary cargo
slate swan
normal folio
slate swan
#

above bot = bot()

#

above*

hoary cargo
#

^

#

usually intents are defined after imports

slate swan
#

yes

normal folio
slate swan
#

like this put

#

also in bot var put

slate swan
normal folio
#
#imports

intents = discord.Intents.default()
intents.members = True

#Get_prefix, activity

bot = commands.Bot(command_prefix=get_prefix,case_insensitive=True,activity=activity, intents=intents,status=discord.Status.online)
slate swan
#

chane disnake to discord

slate swan
slate swan
#

lol

#

wait wtf is id_

slate swan
#

imagine if id is incorrect

normal folio
#

verified by HypeBlock

slate swan
#

๐Ÿ˜ NONE ASKED U

#

๐Ÿ˜

slate swan
#

ok bye i give up

#

no

#
  • break a table or hand
#

show ur main file code

#

@slate swan

#

wdym main file

#

where u put intents

slate swan
#

๐Ÿ˜ NONE ASKED U

#

Bro ig the output of id_ is going to be the user's money?

normal folio
slate swan
slate swan
#

idk that

#

hypeblox is also my bot dev

#

bot dev?

#

go talk with him he is not that dumb

normal folio
slate swan
#

imagine bot dev not asking

normal folio
normal folio
slate swan
#

@slate swan lmaoo where u at๐Ÿ’€

#

idk what they doing what they want why they still here

slate swan
#

lol

slate swan
#

hahah

#

ok whatever i google

slate swan
#

what is id_

normal folio
slate swan
slate swan
#

@slate swan show ur code last time of the error part

slate swan
#

id_ = leader_board[amt]

#

huh?

slate swan
slate swan
slate swan
slate swan
slate swan
#

tf

slate swan
#

lmfaoooo

#

well done

#

๐Ÿ‘ ๐Ÿ‘

#

imagine

#

๐Ÿ˜ญ

#

this is the 7th time i think

#

even ash cant help here

#

hi, how can I make my bot join a channel in on_ready event

normal folio
slate swan
#

await channel.connect()

maiden fable
unkempt canyonBOT
#

await connect(*, timeout=60.0, reconnect=True, cls=...)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Connects to voice and creates a [`VoiceClient`](https://discordpy.readthedocs.io/en/master/api.html#discord.VoiceClient "discord.VoiceClient") to establish your connection to the voice server.

This requires [`voice_states`](https://discordpy.readthedocs.io/en/master/api.html#discord.Intents.voice_states "discord.Intents.voice_states").
slate swan
#

@slate swan np i helped them out

#

ur late.

normal folio
#

There was no help

slate swan
slate swan
normal folio
#

bot just got rate limited

slate swan
#

how the heck i am suppost to make bot not get rate limited or banned

normal folio
slate swan
slate swan
slate swan
normal folio
slate swan
slate swan
normal folio
slate swan
#

so?

#
@bot.event
async def on_ready():
    channel = bot.get_channel("id")
    await channel.connect()
``` I tried this but didnt work
normal folio
slate swan
#

it is an int

#

plus its bad to make requests in on_ready

#

yes

#

but I need to make a bot which automaticly joins a vc

slate swan
#

can u give me a little example of code

slate swan
slate swan
# slate swan can u give me a little example of code
from discord.ext import commands, tasks

bot = commands.Bot()

async def on_ready(): ''' your event here (dont do any shit other than print)'''

@tasks.loop(hours=1)
async def uwu_vc_joiner():
  await bot.wait_until_ready()
  guild = bot.get_guild(guild_id)
  if guild.voice_client:
    if guild.voice_client.channel.id == channel_id:
      return
  channel = guild.get_channel(channel_id)
  await channel.connect()

uwu_vc_joiner.start()
bot.run('''your_uwu_token''')
#

uwu_vc_joiner()

slate swan
#

nice name

#

so does it do uwu function for every 1 hour or after 1 hour ?

#

its loop okay

slate swan
#

you can set it to 24

#

to conserve resources

maiden fable
slate swan
maiden fable
#

Cz u have used the word a bit too many times that it is annoying now

slate swan
#

cuz its trying to connect the channel it already in it

slate swan
pliant gulch
slate swan
pliant gulch
slate swan
#

is heroku the same ?

pliant gulch
#

I'm pretty sure heroku does share IPs as well

slate swan
#

yeah it does

pliant gulch
#

I could be wrong, but since their service is free It makes no sense for them to offer non-shared servers

slate swan
#

can I use repl.it if I wanna use my bot in just 1 server?

slate swan
#

dont

#

will it effect other bots

slate swan
maiden fable
#

u still gotta wait until the ratelimit ends

slate swan
#

then what can I use, its probably gonna use max 15-20 mb of ram, I dont want to just pay for big vds's

#

it isnt good for hosting though

maiden fable
#

???

slate swan
#

then

#

what can I use

maiden fable
slate swan
#

there's a good chance if somebody else is running their bot on the same machine as yours, and gets ratelmited yours will get too

#

hunter use self host

#

then what can I use?

maiden fable
#

Hmmmmmm, ig yea

slate swan
#

same

#

what i can use

#

where u host

#

h

maiden fable
#

500 MB is still a bit too much imo, what are yr intents?

#

Ah then its fine

#

Well my bot doesn't use members intent

#

I mean, I did request access to the intent and I have it, but only for showing bot.users in the presence ๐Ÿคฃ

brittle axle
#

it is a little complicated to set up but it is worth it

#

the downtime is very rare

#

what now

#

if it is dyno hours i have a back up plan

#

what the hail

#

so far i have no problems

#

and i hosted my discord.js bot for 2 or 3 months there

slate swan
brittle axle
slate swan
#

with hosting there

brittle axle
slate swan
#

i cant host its to complex

#

can u help

brittle axle
#

go to dms

#

tbh thats the only technically free hosting other than railway. But i have to wait for a month to host something

maiden fable
#

Many messages which are pinned are his tags only lmao

brittle axle
#

so for now i am using heroku

#

and secondly ytdl which one of my music discord js libraries depends upon is banned there

#

so heroku is my only option

pliant gulch
#

I thought heroku doesn't support C bindings like PyNacl

#

discord.py's music impl doesn't work without PyNacl

maiden fable
#

It doesn't

pliant gulch
#

๐Ÿค” so, you just have YTDL query???

#

You don't play the music at all kek?

slate swan
#

Do yk that i have like 20 heroku accs bc im too broke i cant pay for that so lmao

#

Slef hosting? Like making ur own host? Or some private host servers PB_wow

maiden fable
#

@slate swan do u have a credit card?

slate swan
hoary cargo
#

cap

slate swan
#

No cap

#

I do have id so

maiden fable
maiden fable
#

I host HunAI on there

maiden fable
#

So yea, no need to bother using the ot command

slate swan
maiden fable
#

U still gotta pay for the electricity, or at least a good internet ๐Ÿ‘€

hoary cargo
pliant gulch
#

A cheap VPS is a lot cheaper than a rasberry Pi

#

In the long run that is

hoary cargo
#

PopcornPepe so

maiden fable
#

๐Ÿ˜” Same, but then my internet is slow asf for most of the time sooooo

maiden fable
maiden fable
#

Yea, as in the download/upload speeds are slow and the ping can literally go upto 500ms

hoary cargo
brittle axle
hoary cargo
#

i might switch to them AShmm

brittle axle
brittle axle
maiden fable
#

Yea, I mean the whole house is using the WiFi, even the cameras, soooo I don't feel that its viable to get a RPi and use my own internet

brittle axle
#

i dont own a credit card

maiden fable
#

"in exchange of yr cc info"

brittle axle
#

you can use railway.app but you need to wait for 30 days just to host something from github

maiden fable
#

Won't work

brittle axle
#

no

maiden fable
#

They will charge 1 USD for verification (tho they refund it within a few business days)

hoary cargo
maiden fable
#

Gimme 1

pliant gulch
#

Hunter trying to do credit fraud

maiden fable
#

They don't even accept Debit Cards ๐Ÿ˜”

brittle axle
#

and replit well

#

firstly node js version is outdated so i cant host my music bot

maiden fable
brittle axle
#

and when i try to write the code in python. They need ffmpeg

#

which is pretty much almost impossible to install on replit

#

so the only option i had was heroku

#

for dyno hours i just made another repository with the same files as my original

#

so if my dyno hours run out for the month i can just switch to that

#

if that doesnt work i can just log in to alt account

brittle axle
#

and do the same thing

brittle axle
#

go for railway.app and wait for 30 days

pliant gulch
brittle axle
#

if you are hosting a music bot then you cant

tawdry perch
#

time to use fake cc (yes this is a joke)

maiden fable
tawdry perch
#

damn

maiden fable
#

Since we are already categorized as scammers, sooooo

tawdry perch
#

!ot

brittle axle
maiden fable
#

I have had a few instances of people saying that this is what they think when I tell them I am an Indian ยฏ_(ใƒ„)_/ยฏ

#

๐Ÿ˜” Might as well self host for the sake of a better ping

hoary cargo
#

StareW tbh when i self host i have a ping of 100+ lol

gaunt ice
#

oof

slate swan
#

.

maiden fable
#

Lucky

slate swan
hoary cargo
maiden fable
gaunt ice
#

can we like get the about me section of a user

drowsy thunder
#

@gaunt ice hey! Are your exams over?

gaunt ice
#

is it in dpy yet

gaunt ice
drowsy thunder
#

Guys did yall hear about MODALs!!!!!!

slate swan
#

no

hoary cargo
#

crazy

drowsy thunder
gaunt ice
#

yea

drowsy thunder
#

Its like google form

hoary cargo
gaunt ice
#

hmm true

#

cause it would be really useful

hoary cargo
slate swan
drowsy thunder
gaunt ice
#

oof

slate swan
#

lol its not youtube

gaunt ice
#

lmfao

drowsy thunder
#

It doesnt work like that

hoary cargo
proud rain
gaunt ice
#

ah idk

slate swan
#

lol

hoary cargo
slate swan
#

maybe

slate swan
hoary cargo
#

bruh stop pepeannoyed

slate swan
#

done

gaunt ice
#

of

slate swan
#

js bot to python bot converter

#

epic slash command fail

drowsy thunder
#

Guys,which is best on replit?
A)Replit DB
B)Mongo DB
C)SQLite

#

There is one

#

Then what you use to store data?

drowsy thunder
#

Ok

maiden fable
#

I don't prefer OSing my projects for some reason lemon_pensive

drowsy thunder
#

Guys,who wanna join my coding eh?

slate swan
#

f

#

#bot-commands

gaunt ice
#

replit db is just json file lmfao

drowsy thunder
#

LMAO

maiden fable
#

Which ones

drowsy thunder
#

Anyways why tf are we off topic

slate swan
#

cant find slash in refer

drowsy thunder
#

Guys any idea on how to maoe a captha

#

*captcha

slate swan
#

they dont exist

gaunt ice
#

but for connection mongo is easier

slate swan
#

prob

drowsy thunder
gaunt ice
#

nitro sheesh

maiden fable
#

!d disnake.ext.commands.slash_command ?

unkempt canyonBOT
#

@disnake.ext.commands.slash_command(*, name=None, description=None, options=None, default_permission=True, guild_ids=None, connectors=None, auto_sync=True, **kwargs)```
A decorator that builds a slash command.
slate swan
quick gust
#

what?

slate swan
#

....

maiden fable
#

Calm down

slate swan
#

!d disnake.ext.commands.Bot.slash_command

unkempt canyonBOT
#

@slash_command(*args, **kwargs)```
A shortcut decorator that invokes [`slash_command()`](https://docs.disnake.dev/en/latest/ext/commands/api.html#disnake.ext.commands.slash_command "disnake.ext.commands.slash_command") and adds it to the internal command list.
slate swan
#

gg f

slate swan
maiden fable
slate swan
maiden fable
#

It's fine

gaunt ice
#

hunter path master

slate swan
maiden fable
#

Aw

slate swan
#

i see that ๐Ÿคฃ

maiden fable
#

@slate swan also dpy doesn't has slash commands in the stable version

gaunt ice
#

im turning 16 in 6 months

#

exactly

#

nvm ot

slate swan
#

page not found

slate swan
gaunt ice
#

yesyes sry

slate swan
#

16 - 10 = 6 easy

maiden fable
#

Ah, well just telling that they are only on master version

slate swan
#

nvm ot

#

easy math

gaunt ice
#

forget it

drowsy thunder
maiden fable
#

Stop lemon_pensive @slate swan

#

Stop @drowsy thunder

drowsy thunder
#

What

slate swan
unkempt canyonBOT
#

@slate swan :white_check_mark: Your eval job has completed with return code 0.

6
gaunt ice
slate swan
#

what

maiden fable
slate swan
#

hunter ping spammer

#

we fixed ๐ŸŽ‰

slate swan
unkempt canyonBOT
#

7. Keep discussions relevant to the channel topic. Each channel's description tells you the topic.

slate swan
drowsy thunder
slate swan
#

yea me* said check id_

#

it prints id so

slate swan
#

๐Ÿ˜Ž

slate swan
#

and ot

#

ok tf come ot

maiden fable
slate swan
#

!ot @maiden fable @slate swan come

unkempt canyonBOT
slate swan
#

ot spammers

#

imagine hunter already there

maiden fable
#

No I'm talking with others

drowsy thunder
#

Why is my ears saying balah blah blah

unkempt yacht
#

How do you hide a cog from a custom help command?

gaunt ice
#

im pretty sure ur talking about the default help cmd

uncut comet
#

send() got an unexpected keyword argument 'components' i was attempting to use buttons on discord.py v2.0 with this code

components= [
  {
    "type": 2,
    "label": "Clear les kick",
    "style": 4,
    "custom_id": "clear_kick_button"
  }
]
await ctx.send("This message has buttons!", components= components)  # Send your message with a button.
#

does someone know why?

hushed galleon
#

dpy 2.0 abstracts components into Views which can listen for interactions on specific messages

drowsy thunder
#

Guys help

#

Guys how to check if a message has walls of text or repeated text or too many emotes?

#

@gaunt ice any idea

slate swan
#

h

drowsy thunder
slate swan
#

hi

#

hi

hoary cargo
#

starsLstarsLstarsLstarsLstarsLstarsLstarsLregexstarsLstarsLstarsLstarsLstarsLstarsLstarsL

drowsy thunder
#

Dude ur spamming

slate swan
#

regular expressions

hoary cargo
#

define spam

slate swan
#

yes

slate swan
#

hes talking about regex/regular expression which you import in python as re

slate swan
hoary cargo
#

ok ping the mods because i put too many shiny stars oof

slate swan
#

.

#

@mods

#

discord glitched cant ping

drowsy thunder
slate swan
#

OK

#

are you guys really gonna ping mods for a message that has a long repeating chain of emojis?

slate swan
#

more like 2

#

huh

hoary cargo
#

who types with 2 fingers though

slate swan
#

anybody has command ideas that are complicated which need a db?

drowsy thunder
#

@slate swan yo know how to check if a message has walls of text or repeated text or too many emotes?
Cuz these guys have no brain

drowsy thunder
slate swan
#

alright cya

hoary cargo
#

blockchain

slate swan
#

eh no

slate swan
spark sentinel
slate swan
#

yeah its called a paginator

spark sentinel
#

you have a link for me ?

slate swan
#

make it yourself

slate swan
#

|| ||

#

woah

#

๐Ÿง

#

just press space bar 2-4 time then select the space then see the options

slate swan
slate swan
hushed galleon
slate swan
#

how

#

@slate swan say???

#

bold space

#

** **

#

oh lol i have did this in my bot

#

no name

#

epic fail

#

clyde

#

Clyde is bad boy

#

ok bye

final iron
#

!ot ๐Ÿ—ฟ

unkempt canyonBOT
slate swan
#

another ot spammer guy

#

thats my student MarinAngry

#

..

slate swan
#

that 's google not me

#

im just a general here not an officerAG_ChikaStunned

verbal yarrow
#

Does anyone know how to create bot?

slate swan
slate swan
verbal yarrow
slate swan
#

basics of python

verbal yarrow
#

OK

slate swan
slate swan
#

yes

slate swan
#

f api

#

lol

#

lmao first thing

#

jk

verbal yarrow
#

but someone indicates an application for me to start creating bot

slate swan
#

i thing thats kinda common sense but it should be there

verbal yarrow
slate swan
#

then it will be easy for u to develop bots

#

developing bots needs python knowledge

steep estuary
#

ha

slate swan
#

should learn basic py oop and async programming

verbal yarrow
steep estuary
#

is using lavalink to play music legal?

slate swan
#

yes its legal but its against tos

spark sentinel
verbal yarrow
#

tell me an app to download

steep estuary
slate swan
steep estuary
#

ohk

slate swan
#

if discord finds out your bot breaks tos your application will get deleted

#

or warned

steep estuary
steep estuary
manic wing
verbal yarrow
slate swan
verbal yarrow
#

ok

slate swan
#

!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)
steep estuary
steep estuary
#

i don't know any way to play music :/

steep estuary
#

only this?

boreal ravine
slate swan
boreal ravine
#

get a license for whatever platform you're gonna use

steep estuary
boreal ravine
steep estuary
slate swan
#

the reason why groovy diedrooSnap

steep estuary
slate swan
#

violation of youtube's TOS

slate swan
boreal ravine
slate swan
slate swan
steep estuary
slate swan
#

from disnake

#

that emoji

#

yes

#

disnake died ?

#

no

steep estuary
slate swan
#

jk

#

its still in dev

#

@boreal ravine can you tell me if my subclass is over the top?

#

water gazes said it wasrooNap

#

some guys put rythm pfp now too

slate swan
#

he died as well

quaint scaffold
slate swan
steep estuary
quaint scaffold
#

Scammed?

slate swan
steep estuary
#

this is channel for discord bots

unkempt canyonBOT
steep estuary
slate swan
#

no

steep estuary
#

i wanna get more info if yes

slate swan
#
  • u cant post picture in python general
slate swan
# boreal ravine ok
from __future__ import annotations
from disnake.ext.commands import Bot
import os


class Klaxo(Bot):
    def __init__(self, token: str, cogsdir: str, *args, **kwargs) -> None:
        super().__init__(*args, **kwargs)
        self.token = token
        self.cogsdir = cogsdir

    async def on_ready(self) -> None:
        print("Bots cache has been populated")

    async def on_connect(self) -> None:
        print(
            f"Bot info:\nId: {self.user.id}\nName: {self.user.name}\nDiscriminator: #{self.user.discriminator}\nTag: {self.user.name}#{self.user.discriminator}\nGuild count: {len(self.guilds)}\nMember count: {len(self.users)}\nToken: {self.token}\nCog dir: {self.cogsdir}\nCreation date: {self.user.created_at}\n"
        )
        print("Bot has connected to the gateway")

    def setup(self) -> None:
        for filename in os.listdir(self.cogsdir):
            if not filename.startswith("_") and filename.endswith("py"):
                self.load_extension(f"cogs.{filename[:-3]}")
                print(f"Loaded: {filename[:-3]}")

    async def on_disconnect(self) -> None:
        print("Bot has disconnected from the gateway")

    def run(self) -> None:
        self.setup()
        super().run(self.token, reconnect=True)

and is their anything wrong in itrooThink

#

..

#

andy told me i can remove the setup method but i said no because the run method would be cluttered

boreal ravine
drowsy thunder
#

@boreal ravine can ya help

slate swan
drowsy thunder
#

How to check if a message has walls of text or repeated text or too many emotes?

boreal ravine
drowsy thunder
steep estuary
slate swan
boreal ravine
drowsy thunder
slate swan
pliant gulch
pliant gulch
#

this is barely esoteric

#

Just un-pleasing to look at

drowsy thunder
slate swan
slate swan
#

lol

boreal ravine
steep estuary
boreal ravine
#

oh you're using disnake

drowsy thunder
#

Yes

slate swan
drowsy thunder
slate swan