#development
1 messages ยท Page 958 of 1
he'll not answer anytime soon
i dont see any error
@lyric mountain It litterally just chunks a list into 250 item sections and generates and calls them in the chunks
ah
just for efficient mass message
what is your djs version @wet iron
watch the video ong
what is your djs version @wet iron
@summer torrent V12
i never made it for no reason
I know little about python, only the basics
that is msg.member.roles.add
I use it mostly for task automation
@lyric mountain Still know more than him
"a video"
IF YOU LEARNT THE BASICS WE WOULDNT BE HERE
ffs
It works
gg
thanks
you do know that it takes months (weeks for some) to learn a language, right?
i prefer bot instead of client xd
"a video" will not teach u python from night to day
i could make mine sean buts that effort
you do know that it takes months (weeks for some) to learn a language, right?
@lyric mountain I still didn't master python after 3 years
so yea
i can approve
same why people call a fucking bot instance client i will never know
saying that so many people doing do good var names
not to say that every single day a language is updated
same why people call a fucking bot instance client i will never know
@modest maple I call it client
Im a wierdo
xD
i was refering to python tbh
this is your error
d.js calls it client does it not?
go and learn what indentation is and how python works
u can use ctx
before you give us a headache
ctx.send("test")
only in commands
making a discord bot isn't the best project to start with
this is to contextualize what we're saying
What hes dont is smash some badly copied YT tutorials
that my prefix lol
.addField(":diamant: `-` **Roles**", `[${target.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `\`${roles.name}\``).length}]`,`${target.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `<@&${roles.id }>`).join(" **|** ") || "No Roles"}`, true)
(node:2337) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'cache' of undefined
language?
bruH
its js
discord.js
d.js 11 or 12?
v12
i have a question, i looked up the logs and i bot got denied because of anti swear feature, should i remove mine too?
a
A BOT
omg so many typos
yes
srry, it's quite automatic now that I ask that everytime someone asks help lol
same why people call a fucking bot instance client i will never know
why do people doconst Discord = require("discord.js")whenDiscordis not a class.
my brain is messing with me while typing xd
probably muted not denied
@stable grail i dont think it would get declined for ati swear
even error messages can be muted
i read that
i had to remove mine
@stable grail any kind of automated feature that is on by default is frawned upon. you can have an anti-swear feature as long as its opt-in instead
on_command_error
it said declined for anti swear
@sudden geyser it is?
make it so u can filter it
it is what
on and off
im pretty scared rn
it is a class
bot id?
im pretty scared rn
@stable grail filter anti swear
looks like im gonna remove it xd
make it opt in
is there a list of common issues somewhere that cause a bot to be rejected?
yes
make it opt in
@knotty steeple im trying xd
@sudden geyser thanks
yeah thats what i meant :d
np
no
bruh
its not approved
self advertising
๐คฃ
haahaha 
pycharm takes a while to start bcs of those codes xd
i prefer pycharm
surry
lol
my bot will send the host a message when a person joins their lobby. does this break the automatic message rule?
i can also use atom
quick question this https://python.is-stinky.wtf/rcjzrvsxpp.png or https://python.is-stinky.wtf/tauigdojra.png
my bot will send the host a message when a person joins their lobby. does this break the automatic message rule?
@proven lantern if the prefix is not used yes
so, say, i wanted to get the battery percentage and charging status of my discord bot host
Sammy I like the second one
how would i do that?
what language
js
battery?!
@proven lantern What type of bot is this? A competitive queue bot?
like the elo bot?
lol
check if os module has a way to get that
it's a general purpose matchmaking
@proven lantern HEY, I needed a matchmaking bot, can you send me invite to your server?
in dms
dating?
sounds like fighting other bots
@limber flume Its a bot like, if you do /join it will make you join a queue, if enough players, it will give you a private server's link or code then you join it and play it, or a host can host the match in their own server. ๐
there are multiple commands also.
like /leave
game, what kind of game
playing what?
krrunker?
That should be fine to add as you tell it in your project description
and the help command
i will make a little demo video
krunker has a ranked queue and also competitive servers with their own matchmaking lul
@limber flume I think there are none, that automatically makes a private server for you.
oh theres none?
i'll send an oauth link if you want in invite it
bots can only create servers if they are in less than 10
@limber flume well, there is a ELO BOT
nah i wanna join public
so thats not a good one
why would you create a private server?
i will inv hiim
its a matchmaking but doesnt makes private server for it
bots can only create servers if they are in less than 10
@mossy vine
then its pretty useless to me xd
xd
if a bot creates the private server, that would mean the bot would own it, not you
@turbid bough you wanna play in a public lobby? when you queue up with 10 other peoples?
can't you just make it channel based?
@turbid bough Why channel based?
i dont play valorant
I think its more efficient way of doing it.
If the bot can create a private server, then NOISEEE-SAAA
bots can only create servers if they are in less than 10
@mossy vine would that mean if a bot is in 11 servers, they cant create servers?
well you can have several bot applications to handle that
1 public bot that people invite
and a few private bots that create servers then destroy them as needed
@turbid bough what serversyou mean here.
discord guilds
oh
/join create a private game server in valorant you mean?
@turbid bough I mentioned Valorant as its a 5v5 competitive game
@proven lantern Does a host makes the private game server? or it automatically makes one?
right now the channel is made in my guild, but thinking about changing it so the host's guild makes the channel
@mossy vine when you said has their own competitive server with their own matchmaking, you mean discord matchmaking or ingame matchmaking?
it would require more permission for the bot though
both
@turbid bough Would it be possible to make private game server via discord bot?
idk
im playing games have a nice day guys/girls! :d
the question here is not the "can you" but the "should you"
you mean game severs as in valorant servers, or discord guilds?
@mossy vine of course for a matchmaking bot.
im confused
@turbid bough csgo private servers
ok now csgo?
yeah ok lets take csgo private servers as an example
u could host a community server with ur bot connected
you can containerize a csgo server and spin it up once you find a match, set password, distribute it, etc etc
but for best user experience, these servers should be fast and close to the users
so now you need to pay for servers in different places
route to those places with your bot
etc etc etc
and it can get very costly
but u can make them buy ranks like moderator
at that point just distribute the steam profile links, make em add each other and host some game
A very dumb and stupid question, Im a roblox game developer, can discord connect with roblox, and make private servers.
not sure
you can probably make it happen with place routing or something
@mossy vine In roblox, it requires robux to buy private server, but Im talking about own private server, I can script it and a private server for my game, but how can I connect discord into roblox?
lets say
10 people in lobby
then 2 captain picks player
then the bot automatically sends the player a code, that a player can join my game, click on server, then put the private code and join them and the team they chose, the map the elected.
i have no idea about roblox stuff
roblox uses .Lua
roblox has this local http = game:GetService("HttpService")
It is mostly used in webhooks in discord
@mossy vine
Well discord actively blocks roblox
because too many 10 year olds were spamming webhooks with logs
lololol
@amber fractal AHEM... I had made a report system that goes to roblox to discord
But is it possible to discord to roblox?
I doubt roblox would allow you to accept incoming requests.
Why not?
Because that could cause security issues
Well, Just found out, it is posible to do discord to roblox
Discord To Roblox Ban Bot Update as of 12/8/19 This source has been used by phenomenal games like Vehicle Simulator, and many other great games. A few months ago me and @Belzebass had decided to add on to Discord To Roblox Ban bot, to be able to have large games support thi...
I mean it might still work
What are you trying to say, exactly? @amber fractal
It's probably old
Oh lmao it uses google sheets
I'm pretty sure you can
It also uses d.jsv11
which wont work come October, someone may migrate it
wouldn't be surprised
Does anyone know HTML?
can you make a csgo trading bot in discord?
@amber fractal
I encode BotList but when I send the application it says fill in the required fields
(ฤฑ'm use translate),
:D?
making a csgo trading bot is possible but not without researching an API which can
show picture
how will i solve
ik the steam api can but it'll be hell to link accounts and process trading
@rigid maple show picture / image / screenshot
ss me?
@amber fractal you trade with steam app
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::3000```
I get this error
when I try to run my bot from glitch
something is already running on port 3000
change the port or find the process running on port 3000 and close it
glitch only allows using port 3000 afaik
well how do I fix that
you dont run multiple servers on the same port
okay
check all the lines where you use port 3000 or process.env.PORT
Im fricking new to glitch
I removed all projects
that were a fail
and nothing
still nothing
the problem is not your projects, its your code
look in your code where you use port 3000 or process.env.PORT
.addField(":diamant: `-` **Roles**", `[${target.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `\`${roles.name}\``).length}]`,`${target.roles.cache.filter(r => r.id !== message.guild.id).map(roles => `<@&${roles.id }>`).join(" **|** ") || "No Roles"}`, true)
(node:2337) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'cache' of undefined
msg.guild.createChannel is not a function anyone help?
@wet iron what version of discord.js are you using?
V12
So I am having a issue
with a command it works if I type it twice
okay
why does createChannel return a CategoryChannel
but the channels array are GuildChannel objects
CategoryChannel is just the first type that createChannel can return but there's more
and guild.channels.get(channelId); returns a CategoryChannel
you do a get on a collection of items and get a different type than what's in the collection?
The | means there's more than one type
not the best design
discord.js-next 
also if you're using discord.js v11 you should switch to v12
why
v11 won't work come october
why
intents
what
i'm using firebase which is limited to version 10 of node.js right now
tomorrow they deprecate version 8 and move to version 10
maybe version 12 will go into beta then
Discord will start requiring gateway intents in october and v11 won't receive an update for it @earnest phoenix
@smoky spire oh, okey thx for info.
why would they update v11
They aren't
that's what I said
Why would they even update v11, it's an older version, that no one should be using
@copper cradle backwards compatibility
besides from that
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
@quartz kindle thanks
and this for discord.js v12
will these gateway intents allow us to setup message listener without a socket connection?
no
dang
they allow you to selectively subscribe to packet types
instead of being forced to process everything discord sends you
gotcha
is there any way to detect clicking browser tab
i mean ur bot
ah thx
wouldn't it be better to have us define a set of endpoint that can be invoked when the bot receives messages. then no socket is needed
socket will always be needed
its the only way to reliably receive potentially hundreds of messages per second
when your bot gets on more servers
APIs can receive lots of messages pretty reliably
yeah
but that would be a huge overhead to establish a new connection on every single message
i think http/2 reuses connections. maybe even http/1
partially yes but not in the same way websocket does
because http is self-contained and stateless
the webhook could also receive a batch of messages every x seconds instead each message individually
that's true. discord could charge for a higher frequency polling
i just want to be able to use cheap hosting
polling would be an extra strain on their servers
you can still use cheap hosting
i mean, i pay 3$ a month
i mean free
well, if you want free, then you have to settle for glitch/heroku/free trial
i'm just running it from a machine i keep online
the problem is not the websocket anyway
websockets aren't that expensive
90% of a bot's resource usage comes from processing discord presence updates
typing start update ๐ณ
@cinder patio dude what
and with intents, you can selectively subscribe to the events you want, and get rid of presences altogether
as in RAM not money
ah yes
sockets dont work with lambda type hosting where the server shuts down when it's not receiving traffic
just do what everyone who uses glitch does
set up a periodic http request to ping it and keep it alive
lol
lmao
i want the server to shut down so i save money
i only get 28 hours a day and i host a few other websites
Can't you buy a cheap vps to host the bot on?
who here uses discord.js 11.5.1
@cinder patio cheap is relative to your currency
that's true
@proven lantern are you using app engine or compute engine?
i was using app engine for project before, but i switched to firebase
you can host your bot in compute engine instead
yeah, but that would use my instance hours
you're not in the free trial anymore?
can anyone give me ideas for a discord bot
i've been using google hosting for around 3 years now
ah
i only used them for a year, during my free trial, then i moved out
Im using Nginx, I was wondering how I would have 2 different websites (hosted with express and node.js) on two different domains
on the same server ip
because compute engine is much more expensive than the competition once you go non-free
but you still get the 28 hours free instance time each day before you start paying
hi, i have to models for a member, one for my dashboard and one for the bot itself, im trying to use the same model and database collection, when i use two different ones, everything works the way i want it to, when i use one, it doesn't load, and when it eventually does, i get an error InternalOAuthError: Failed to fetch user's guild, using passport-discord and passport. if anyone can help it would be great :)
@proven lantern yes but the f1-micro compute engine instance that you get in the free plan only has 20% cpu capacity and 600mb ram
once your bot grows, it will need much more than that
besides being limited to 1gb/month bandwidth which is extremely low
the blaze plan just needs a credit card, but is still free unless you go over the quota
i was regularly going over the bandwidth quota
and anyway i wanted more cpu and ram
already hyper optimized discord.js
even made a framework for it
using 120mb ram at 3700 guilds lol
not bad
another thing is that google's disks are very slow
they scale down their disk speeds depending on disk size
nice
the good thing about go is that it compiles to a binary so when it's scaling out it just needs to load the binary and not load an interpreter
they are slow and cheap
just like a disk should be
i rather pay 3$ a month to get full ssd speed, unlimited bandwidth and a dedicated cpu core
not a bad deal
yeah, vps has become so cheap that is well worth paying for
unlimited is always a trick though
and this coming from a person who pirated his entire life
and never bought a single game/movie
lmao
not as bad as real pirates
hey
can anyone tell me how do you import a ts file in ts
import "bot.ts" from "./CordDex"
``` im getting error for second one
should be the opposite
./Cordex is the folder btw
ah
yea
i think you need an index.ts file
is typescript just es6 js and when defining things, u define the type?
basically
my question is
typescript is superset of javascript
super duper set
typescript is a super duper annoyance
why would people use ts instead of js is more efficient and faster than ts and ts shouts at u?
i tried ts for liek
a week
didn't like it
because ts makes your code look nice in code editors
and prevents teams from making mistakes
more intellisense
oh
im having a little crisis with javascript breaking with large arrays lol
does ts also break with large arrays?
ts compiles to js
oh
its kinda weird to use tho
i am already hating it
what is a good way for me to counteract it from breaking?
and im hating deno too
why are you using deno lmao
error: Access is denied. (os error 5)``` this is the most stupid i have ever got
So I'm trying to detect if the user has the server booster badge for my userinfo command, and I'm checking if the user has boosted the current, the current guild or one of the guild that my bot is on...
But is there any other way to check than these 2?
i don't think d.js has a way to detect badges
I do โฌping
scuusy
My bot: Pong!
@earnest phoenix you can check if member.premiumSince exists
Send your ping command code
how bout you post your command in here'
then what else do you want?
oof
omg
ghostBOTTTTTTTTTTt
?
Is there any other way of detecting the server booster badge other than that 2 i said @quartz kindle
not afaik, the badge is server specific
@earnest phoenix i dont know how that app works, but you have to disable responding to bots somewhere in its settings
@earnest phoenix i dont know how that app works, but you have to disable responding to bots somewhere in its settings
@quartz kindle i tried EVERYTHING
And this with other commands
have you tried uninstalling that app and actually coding your bot yourself? :^)
that app is way too complicated for me, I would help, but I am only using discord.js :/
or learning prog. language
have you tried uninstalling that app and actually coding your bot yourself? :^)
@quartz kindle i am scared to lose my data
isnt that ghostbot?
bot designer?
@quartz kindle yeah
import "bot.ts" as bot from "./CordDex"; guys is something wrong with this code
isnt that ghostbot?
@midnight blaze the name of my bot is The Gamers Bot
isnt it meant to be js?
its ts
But the bot is ALL IN ITALIAN
ok no idea
you didnt try that stackoverflow answer i sent you?
@misty sigil big fan
you didnt try that stackoverflow answer i sent you?
@quartz kindle huh?
@earnest phoenix make your own bots, dont use those apps 
it didnt work that way
@earnest phoenix make your own bots, dont use those apps :PepeCri:
@midnight blaze and which app i can use?
visual studio code
@earnest phoenix ask in their support server
visual studio code
@misty sigil is for PC or Mobile?
PC
Ok no
u can use glitch
if you are on mobile there is very low chance of making bot
I don't have a computer
If you want for mobile you can use Termux nano or a code editor
i believe they have a text editor
As these guys know i made my bot on mobile
or gitlabs "ide"
If you want for mobile you can use Termux nano or a code editor
@earnest phoenix gimme the link
@earnest phoenix for which?
@fiery stream from what i know about js, you cant import a file from a folder, you have to import all files in an index file, then import a function from the index file. when you import from a folder, it tries looking for an index file in that folder, if it doesnt find one it quits looking. Never heard ts doing anything different from that, but i dont use ts so...
I want to make my own bot
COMPLETELY italian
@earnest phoenix both are available in Google play store
@earnest phoenix both are available in Google play store
@earnest phoenix ok
But you can speak a programming language
that is not a good ping to pong ratio
1306 wtf
Perfect.
Now i want to die
The ping is getting higher
"Koya lick"
anyone know how to check discord.js version? i forgot
cant you just shut it off?
@quartz kindle i tried
@royal portal npm ls discord.js
require('discord.js').version
thank you
But nothing changed.
Why is website down
?
The website is down
code it urself instead of using a shit app 
@earnest phoenix that ping is gonna hit a number higher than an actual ID
impossible
IDs are higher than the max integer js supports
is that ur site @merry shuttle ?
oh then
Now i need to reset the bot
@quartz kindle yea ik... Just joking
Wait i have an IDEA!
@earnest phoenix if you coded a bot yourself that wouldn't have happened
@earnest phoenix if you coded a bot yourself that wouldn't have happened
@earnest phoenix i used the templates for the commands
@earnest phoenix you can probably get better help in that app's support server. Here we help with programming questions, not with apps that do it for you
@earnest phoenix you can probably get better help in that app's support server. Here we help with programming questions, not with apps that do it for you
@quartz kindle wait let me translate
if you google bot designer, you will find their website, which has a link to their discord server
Config.findOne({
guildID: id
}, (err, guild) => {
if(err) console.log(err)
if(!guild) {
const newConfig = new Config({
guildID: id,
prefix: config.prefix
})
return newConfig.save();
}
})
})
});``` Is this api abuse on client.ready?
ayy anybody got idea how to set author in embed in py
guys how would i scale to multiple servers
@merry shuttle what exactly are u tryna do?
if i theoretically get multiple hundreds of thousands of people
@earnest phoenix your token is incorrect
do you know waht token is?
@jagged gulch Store the id and prefix of all the servers on start
do you define token earlier
ok
@earnest phoenix you've been told many times to learn python before making a bot
please
I KNOW PYTHON
@jagged gulch Store the id and prefix of all the servers on start
@merry shuttle What library / language u using
Js
u don't
I KNOW PYTHON
@earnest phoenix but do u know what an api token is?
@jagged gulch Is it allowed or no tho lol
it is allowed
@merry shuttle if ur using discord.js couldnโt u just use client.cache to avoid that?
But either way ur just grabbing a list of guilds so ur good
Alright thanks.
@earnest phoenix but do u know what an api token is?
@jagged gulch he does, earlier today he leaked his token, so we told him to redact it from the screenshot
lol
does python have some kind of dotenv?
I KNOW YOU SHOULDNT
lmao
Dude
so i reseted my coin
does python have some kind of dotenv?
@strong tundra was just aboutta ask that lol
You were already told to learn basic python syntax
@earnest phoenix did u set up a dotenv properly?
We love discord ๐
What a nice way to start bot development
Wait does python have a dotenv library/module tho?
Probably
You can start the bot with command line arguments
Then get them with sys.argv
@earnest phoenix where did u import dotenv and define TOKEN
That's not the issue, he need to put login after all the methods
Iโm a js dev so I donโt really mess with cmd line args but thatโs also an option
His login is before the methods
It doesnโt look like he actually got the token tho, like with process.env.token
And yeah u gotta define stuff then login
Here's the start of his issue for context #development message
Users : 10 in this line, how can i get just 10 ?
is for my membercount bot
And i want to get only numberโs in a channel name
no ones gonna do that LOL
tรผrkรงe konuลmuyorum ama google translate'i kullanabilirim
Hatanฤฑn tam ekran gรถrรผntรผsรผnรผ alabilir misiniz?
arkadaลlar disord bot developer rolรผnรผ nasฤฑl alฤฑrฤฑm ?
id1, id2, id3
What did you enter in the owner and servers fields
hello ฤฑ want bot developer role.
You'll get it once your bot is approved
Space after the commas
how will it get approval?
magic
-faq 2
love faith and pixy dust
Also, I suggest you move to #support for questions like this instead of #development
how is server count checked on py and user count
wdym user count isnt?
usercount isnt posted
so i cant check it?
oh wait
you can get user count by doing len(bot.users)
but thats only cached users
Hey im setting up visual studio code and planning on pushing it to github and then to my vps. It prompts me to add node_modules to gitignore. Should I do that?
If you have certain things with d.py disabled its heavily effected
@earnest phoenix Current thinks it can only see 5 Users out of 55k servers
cachingโข๏ธ
I do it so then the bot first starts it logs the time with a datetime object
then when i do uptime or somthing
it works out the time delta
hi, i have to models for a member, one for my dashboard and one for the bot itself, im trying to use the same model and database collection, when i use two different ones, everything works the way i want it to, when i use one, it doesn't load, and when it eventually does, i get an error InternalOAuthError: Failed to fetch user's guild, using passport-discord, passport and mongoosejs
and then its just td.days, etc...
oh that seems hard
its legit just doing self.start = datetime.now()
and then working out is just
td = datetime.now() - self.start
Don't know about py, but you could sum every .memberCount property of every guild, isn't super accurate but it works
can anyone help me with nginx? I have this in my config file (and more) Im trying to host 2 domains on seperate node apps on the same server
server {
listen 192.168.0.8:80;
server_name www.flexiboat.ga;
location / {
root /var/www/flexiboat.ga;
}
}```
I was wondering why it isn't working
hi all, my bot has an api built into it and the web dashboard makes requests to it to change settings, but i'm wondering how to authorize it so people can't go and randomly post to it from the outside, and so you can only modify settings if you're logged in on the dashboard
discord oauth?
๐ช
- You only have it listening on the local ip, is that on purpose?
- You should also accept flexiboat.ga as server name
- Aren't you trying to proxy the request to a node application?
I ask you two questions and you answer with yeah
yeah but what sort sort of token - couldn't someone just inspect element on the dash, get the token, and then use it outside of the dashboard?
yes, sure they could, but why is that bad
i only want the dashboard to be able to use the api
so only the guild owner or users w/ perms can
I think you are getting this wrong
this is what I use in my dash
hasAdmin(auth, id) {
return new Promise((resolve, reject) => {
auth.guilds.forEach(async (guild) => {
if(guild.id == id) {
if(!!(guild.permissions & 0x8) == true) {
resolve(true)
}
}
})
resolve(false)
})
},```
id is the id your checking for
and auth is what you get from oauth2
There are plenty of solutions, but I'm currently doing it like this:
- Get User to use discord oauth
- Get access token from discord
- Get owned/able to administrate guilds over oauth
- Send cookie to user
Then when the user makes request you take his cookie, somehow get the pre saved guilds, check if they have permissions to manipulate the guilds setting
how can i host my discordjs bot on digital ocean
You install nodejs on the server, install some kind of process manager (e.g. pm2) and let it run your bot files
that's all useless
Hey, I was wondering something, but decided to wait until the chat quieted down a little.
the dashboard handles perms fine, but the api is diff
your dashboard handles permissions?
So I'm trying to regex something, but I have no clue how to regex it. For my mute command, I want to be able to set a time. This obviously has to be specified, but obviously doing "90m" isn't viable for a lot of people, 1h30m however is. How would I parse anything beyond "30m" using regex, or anything that works for that matter? I use NodeJS with the Discord.JS library.
ok buddy either you are explaining yourself really bad or your infrastructure design is kinda bs
well i either just make the dashboard update the db and hope the bot works it out, or i build the dash into the bot which i don't want to
I figured out how to do "30m", /\d+\s?[a-zA-Z]/ (if I remember correctly)
oh wait, with dashboard you do not mean a pure frontend?
3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] anybody know how can i get just the python version number not the other uneeded stuff
just 3.8.2
with sys.//version_/_/
uhh
this is weird
Im using digital ocean and do I need any of this? https://gyazo.com/bbf387dfa2081c6ed13a427eff06961a
it's got backend
I don't think you need a private ip
is there a listener like client.on('message', messageListener); that only listens to messages with the command prefix?
you build it yourself @proven lantern
inside the message event, check if the message starts with your prefix
i want to have less bandwidth
no such thing yet
dang
that's... not gonna make any diff
that's totally different
I think my DB is too big to host on a VPS
@sick cloud pretty sure it is, the approach looks similar to how slack does it
Only sending messages that trigger a command, at least that what it looked like for me
discord probs won't ever do it

think of the wasted bandwidth
yeah, and think of the ways to steal loads and loads of data
I think I'm up to 20GB but it will grow quickly
Not huge but it will be expensive
nah, my server has 80GB storage 
And will Prolly upgrade soon
bandwidth really doesn't matter lmao everyone has lots
attach an EBS to your VPS
depends on the size of your bot 
But messages are probably your smallest problem, typing events and presence updates 
Intents 
buy a server rack and setup a raid that you can expand when needed
lmao
did you just try to ping everyone because you had an issue
You did
you tried to

if you want help then explain what you need help with, what the problem is, show code examples, etc...
dont just ask for help and say nothing about the actual issue
please read this
that explains exactly why its such an issue asking for help without explaining whats wrong
bruh
Define, "command just won't work". What doesn't work about it. What steps have you tried which lead to the issue
How do I prevent rate limits? I use eris
where do you define bot in your code
i think he meant the bot variable
Bot logs in, nothing works
bot
your client
i mean he is asking where is bot defined
the bot variable
like the client?
Aspect do you happen to have any knowledge on Python.
they are asking you to show the code where you defined your bot variable
It's the main file. So probably on top
Tim is good at explaining lol
all I see is client up there
i still dont see bot
so you never defined it but still using it?
does anyone know how to get unviersal emotes?
just use <:name:id> for custom emotes?
huh?
like emote from discord to- yeah that i think
so how?
add bot = client under your client variable
um
@stark abyss you can do \emoji to make it show its code
default emojis have unicode counterparts, but custom emojis dont
so i can't do custom emotes?
just do bot = client under the client variable @earnest phoenix
custom emojis are just images, the only way to use them outside of discord is downloading them image
\๐
I have this in Nginx config js server { listen 192.168.0.8:80; server_name www.flexiboat.ga; location / { proxy_pass http://192.168.0.8:8080; } }
shouldn't it work instead of giving me this (it has cloudflare too) https://prnt.sc/su0r05
i c
Also aspect you should look up declaring variables in Python because you're struggling over a basic part of Python.
ty
just make bot an alias of client and everything will be fine
cuz shortcuts = best
Or they could stick to one variable and use it from there
^
but he already used bot for most of the lines
and its gonna be annoying and time consuming to change them one by one
To stay consistent.
@mystic violet shouldnt you listen to localhost instead of your router-assigned address?
show code again
all this for the name of a variable...
my internet is this sad it can't even connect to discord
@mystic violet change proxypass to http://127.0.0.1:8080
also put server name both with and without www: flexiboat.ga www.flexiboat.ga
How do I prevent myself from getting rate limited? My bot is always being used like 10 people doing commands at the same time in the same server which ratelimits it.
inb4 its just shitty glitch
glitch and python
does glitch even works with python
yes
but aspect I think what you could use is a review on python or at least declaring variables.
;-; sad that nginx isnt working
Once you know your why you'll know how to solve it
127.0.0.1:8080 is tho
btw i remember that d.js have some kind of rate limit preventer. Is it possible for me to implement that to my eris bot?
eris should also have it
if people use 10 commands in 5 seconds, does your bot respond to 5 commands, pause, then respond to the other 5?
Glitch + anything = bad deal
if people use 10 commands in 5 seconds, does your bot respond to 5 commands, pause, then respond to the other 5?
@quartz kindle no it outputs something in the console like "YOU ARE BEING RATE LIMITED" then only respond to the other 5 after like 30 seconds
color list
Not here hoister
color bot
Not here
color=pink
@earnest phoenix shouldnt be 30 seconds lol, other than that its working
thats the library's rate limit prevention kicking in
color help
@gentle gazelle dude
๐
Can't u read?


