#development
1 messages · Page 1738 of 1
Glitch does not allow keeping a service online 24/7, especially bots, and WILL ban you for doing this with an external service like uptimerobot
I already watch for guild updates, and I saw that a bot changed the vanity back and saw that it was smart
If it was possible to change the vanity URL using the API, discord.js would have a built-in method
so I don't know how the other bot does it, but it's probably NOT using the API directly
What library was that bot using? (The one that has the feature)
That could be unknown
@wooden shoal it's not available in he docs, so I think it might not be available
Also any idea which bot did that?
wdym I got mine at 14
there's no way you got a cc at 14
maybe a debit
you need to have income to get a cc
cc? Nah that's not possible
Also we probably live In different countries
alternatively, use your mom's cc
works like a charm
only costs one session of beating
XD
😂
Oh yeah A debit, I just call them credit cards
You forgot the every month part lol
client.on("webhookUpdate", async webhook => {
const log = webhook.guild.fetchAuditLogs({
type: 'WEBHOOK_CREATE'
}).then(audit => audit.entries.first())
const user = log.executor
if (user.id === webhook.guild.owner.id) return;
if (user.id === client.user.id) return;
let whitelist = db.get(`whitelist_${webhook.guild.id}`)
if (whitelist && whitelist.find(x => x.user === user.id)) {
return
}
webhook.guild.members.ban(user.id, { reason: 'freedom | created a webhook' })
webhook.delete({reason: 'freedom | webhook created by unwhitelisted member'})
})
This is deleting the whole channel the webhook iss in for some reason.
Sheeeshhh, I'm so sad
Heroku doesn't save quickDB data it makes me cry
Digital Ocean 
Yikes
Free $60 credit
I'll have to pay 5 bucks
Yeah
F
But probably best bet
Issue is they upped their security and you need to give identity info now
lol
Please die
mods: pLeAsE dON'T JoKE aROuNd liKe ThAt
seriously though
why would you reply with that
please see if it corrupts
actually there is a limit
Yea
Though public repos have a huge quota for personal use
@umbral zealot It needs await.
yes I'm aware that your current code needs await
I already provided you with a relevant and functional alternative
that would not need await
and thus not slow down your bans in any significant manner
what the hell
thats so likely to not work
most people who have perms to create webhooks will be above the bot
and will therefore error
So I should store the bans in a database? @umbral zealot
no
do you have a modlog channel?
Do I need to really find the message I already wrote about this
smh
here. #development message
read that again
I don't know how to do that tbh

did anyone ever figure anything out on why this was happening to me? sorry at work so not constantly looking, I didn't see anything tho
show the css
there is none
btw my phone's at 6%
the danger tag
that's not an html thingy
that's from bootstrap
yep
lr any other css framework
yeah now that i got a break at work I looked back at it
and saw
thanks for helping me get to the answer xD
my console is full of this error and one shard has a bit of too high latency do you have any idea?
I need help
How can I use custom emojis in embeds?
<:name:id>
js or py?
py
this
it doesn't matter the language
It doesn't work
show code
ok
also they don't work in titles (I think) from my experiences
Does it work on footers?
no
only description and field values
yeah your better off embedding an icon aka footer photo
thats about as close as you will get
you can also use unicode emojis and standard emojis i believe idk been awhile since I last used them xD make my own emojis nowadays
upvote? why not just make it a reaction than?
I am making a meme thing which also tells who many upvotes the post has
ok
just an idea you could also use 🔼
-help
How can i make it look better then?
\⬆️ ?
is there just a regular up arrow?
yes they do
i mean since the user isn't required to react you don't really need an emoji
so yeah symbols could work
any mod???
i want it to show that it's the upvotes
Need Help
▲ ▼
yeah should
ok let see
with?
how would i make a command only work for one person discord.py?
Footer
should be fine
I have a bot. I need it to be verified in top.gg
Just check the id if it's a person you set manually
if your waiting on verification go to #502193464054644737 to find out more on the wait time
yep he is right
if the person you want is you just check if the id maches
either that or a role that only you are in
would i just do user_id=[id here] to set it?
+startbot
if ctx.author.id == 'id here as a int'
oh
well it would be an int right?
i did something wrong
@client.command()
async def testcommand(ctx):
if ctx.author.id == '517020964261855232'
await ctx.reply("Test Command Is Working")
else:
await ctx.reply("Your Gay : )")
but idk what
dont put the id in ' '
oh
File "main.py", line 695
if ctx.author.id == 517020964261855232
^
SyntaxError: invalid syntax
error
hmmm
Maybe make a variable called owner which is an int and put the id there and the check if the ctx.author.id == owner
ok
lmao
)")
no i think that is a smily face
its a smile
: ) see
lol
its what happens when I try to multicode im doing irl work rn while trying to fix my own bot xD linux vs python 0_0
owner = 517020964261855232
oh im even more dumb
We all are
ok so i fixed that and im getting this error once again
File "main.py", line 697
if ctx.author.id == owner
^
SyntaxError: invalid syntax
this is wht i have atm
owner = 517020964261855232
@client.command()
async def testcommand(ctx):
if ctx.author.id == owner
await ctx.reply("Test Command Is Working")
else:
await ctx.reply("Your Gay : )")
pretty sure you need : after an if
i didnt know what you meant at first thanks
i got it
@lyric mountain Sorry for the ping but do you know how i can make my bot say that it's typing and stops after the message is sent? discord.py
no, but search for something like sendTyping
ok
and how to stop it?
it should auto stop after 10 seconds too
Can I force it to stop?
^^
sending a message
Yeah i send an embed but it doesn't stop
there is no "stop typing" endpoint as far as i know
hmm, not sure.
are you doing start typing then instantly sending the embed?
That’s weird my bot sends an embed and stops typing
its possible if you send them too close to each other discord may process them in the wrong order.
You can just use the discord.js API shortcut to get stickers from a message
<Client>.api.channels(<Channel ID of the message>).messages(<ID of the message>).get()```
the only ways to stop are either after 10s or after sending a message
i mean im not sure why sending a message after typing wouldnt work.
what comes first
which is what hes claiming to do
maybe he sent without delay
I am sending a message but it doesn't stop
did u add delay between calls?
at the very least wait till the typing call is finished.
no
^
if they are happening that close together, theres no real reason to start typing.
the main reason to use typing is if its going to take some time to send the message
To be real it does take a while for it to be sent
I have an utility method called typeMessage which calculates avg time to type the message (2-3 seconds per char), send the typing event, wait the calculated time then send the message
you could do something like that if you REALLY need to make it look like the bot is typing
So everything works perfectly fine until I add this code: ```js
client.user.setPresence({
status: "online",
game: {
name: "me getting developed",
type: "STREAMING"
}
});
});
I'm adding it within ```js
client.on('ready', () => {
. . .
});```
error?
Here's my error: TypeError: client.user.setPresence is not a function
did u try client.setPresence?
yes, I did.
I noticed something it stops typing and then it starts again
so im just testing random shit and i was wondering if i can make my bot send a message to a channel when i run it
You can
is that possible
oh
would this be how i would do it discord.py
channel = bot.get_channel(834635134409900058)
@client.event
async def on_ready():
change_status.start()
await channel.send("Test")
print('Bot is ready')
Try it and see
so random question my bot link i have always just had set to be administrator how do I get the one that users can choose what to enable permission wise while inviting the bot
0 is no perm
i did and i got this error
File "main.py", line 21
change_status.start()
^
TabError: inconsistent use of tabs and spaces in indentation
i see what ya mean
looks like python 👁️👄👁️
you mean actually click the boxes
no shit sherlock i said it was python
They are not indented correctly, they should all be on the same indent line
oh wait it is
yeah
Make sure to ONLY use tabs for indentation or ONLY spaces
I noticed something when my bot sends a message it stops typing and then it starts again how to fix it?
shit sherlock
I think it's CSS mainly
its both
¯_(ツ)_/¯
they are
im no pro but if you need help lmk
anywho any idea how the heck it's crashing on such a simple command?
@solemn latch & @lyric mountain Answer
you pretty much type in there as if it was a .html file or something of the sort
right here, it pains me
please dont expect people to help you. we are not obligated to help you.
its very disrespectful
ok sorry
gimme help or gimme death .... jk
oh ye i have this kid in my server doing the same thing to me
he keeps making me help him. as if he pays me to do it
aren't you sending the typing call again?
also, is your flow async-proof?
remember async runs in parallel
not sequentially
do you want my code?
async with ctx.typing():
time.sleep(0.1)
subreddit = reddit.subreddit('memes')
top = subreddit.top(limit=100)
sub_list = []
for submission in top:
sub_list.append(submission)
subChosen = random.choice(sub_list)
subTitle = subChosen.title
subUrl = subChosen.url
embedVar = discord.Embed(title=subTitle, color=0xffa300)
embedVar.set_image(url=subUrl)
embedVar.set_footer(text=f"Result from r/{subreddit} || By {subChosen.author} || {subChosen.score}▲ || {subChosen.num_comments}💬")
await ctx.send(embed=embedVar)
Just do await ctx.typing()
but then it doesn't even start typing
Does anyone know javascript?
@earnest phoenix it should be client.user.setActivity
oh await
Wait nvm
i forgot the await thing
I’m not sure if that works
let me check
TypeError: client.setActivity is not a function
client.on('ready', () => {
console.log('Online!')
client.user.setActivity("Finally hosted!")
})
something like that ^
I meant client.user.setActivity, my bad
ok 😄
TypeError: client.setActivity is not a function
Await ctx,typing doesn’t work
Still am getting that error
client.on('ready', () => {
console.log('Beycord is online!');
client.user.setActivity("Finally hosted!")
});
const client = new Discord.Client({
disableMentions: 'everyone'
})
TypeError: client.user.setActivity is not a function
you have that?
Tried again and it just changed
nope
TypeError: object Typing can't be used in 'await' expression
Yeah it needs the asyn with
You can also use ctx.channel.trigger_typing
wdym?
It is different for eris
you need to do async with ctx.typing to use it
yeah but how to stop it?
oh, you're using a different library, I see
Yes
what I'm seeing is this on the docs ```js
const Eris = require("eris");
var bot = new Eris("Bot TOKEN");
something like that
the problem is you are sending the message in the async with ctx.typing
I have this stuff already
as well as ```js
const client = new Eris(process.env.TOKEN, {restMode:true});
if(message.channel !== supportchannel) {
message.author.send('You cannot run the `new` command in that channel. Please use this command in [#840308596952530954](/guild/264445053596991498/channel/840308596952530954/).')
message.delete()
}```
how come it deletes the msg *even if* the user is in the support channel?
var

compare ids, it's safer than comparing channels directly
It worked thanks
I'm not sure then, I would look up "how to change eris discord js bot status" or something like that
your welcome glad to be able to help 🙂
?
channel.overwritePermissions([
{
id: `${message.guild.id}`,
allow: [],
deny: ['VIEW_CHANNEL']
},
{
id: message.author.id,
allow: ['VIEW_CHANNEL', 'SEND_MESSAGES', 'ATTACH_FILES', 'EMBED_LINKS', 'READ_MESSAGE_HISTORY'],
deny: []
},```
y is it resetting that perm
ah wait i think its bc of synced category perms
one sec
anyone know whats wrong with this??
channel = client.get_channel(834635134409900058)
@client.event
async def on_ready():
change_status.start()
await channel.send('Test')
print('Bot is ready')
Hello, so I have a js script located at https://ad.aakhilv.me/config.js, and it sends a post request via a script tag on the browser to my server and this function parses it:
app.post("/new", cors, async (req, res) => {
// Parses data sent here.
});
However, some people are customizing the script and changing up the data that is supposed to be sent. Anyone know if there is a way that I can make sure that the request was sent through the script url that I provided above, and not a modified version of it?
what error
Ignoring exception in on_ready
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "main.py", line 21, in on_ready
await channel.send('Test')
AttributeError: 'NoneType' object has no attribute 'send'
aha because you are doing client.get_channel before the async on_ready. You need to put channel = cleint.get_channel(id here) within the async def on_ready
so how would i collect the message history of a channel in a txt file then send it to a diff channel + the user who opened the ticket
What language
Hello, anyone know why this isn't working? It's not deleting the key from the json. (nodejs)
index.js:
if (Math.round((db[k].t - Date.now()) / 1000) > 10) {
delete db[k];
fs.writeFile("./db.json", JSON.stringify(db), function(err) {
if (err) throw err;
});
} else {
keys.push(k);
};
db.json:
{"example1.com":{"d":"Description 1.","t":"1620417793158"},"example2.com":{"d":"Description 2.","t":"1620417602551"},"example3.com":{"d":"Description 3.","t":"1620417627524"}}
JS
Are you sure the if then block is being run?
What then block?
wait
nvm
I think it is
You should verify.
ok
^
also i dont wanna get rate limited when doing this so like yeah
have it create a new file on my host, send that file to the user is what i want it to do
you want to collect an entire channels message history?
yes
specifically a ticket channel
where there isnt that many msgs
that's pretty much unreasonable
you can only fetch 100 messages at a time
and fetching a whole channel would be severe privacy breach
it's fine for a ticket channel
yes, if limited specifically to the ticket channel
imagine fetching public chats
there's been people who downloaded the entire history of dapi
You could repeatedly try fetching until no more messages are returned (with some reasonable rate limit, but I'd recommend just returning the first 100 messages instead) (<TextChannel>.messages.fetch(...)). You could store the contents of the messages in-memory as opposed to creating a file on your system (Buffer.from(...)) then send it to the user.
it took a few days to complete
So how would I check if there's more than 100
So like,
Fetch 100
Check if any more
If more, continue, if not end
technically, you'd not need to have such thing
I don't think the API tells if you've hit the limit, so one way to check would be to fetch 100, see if 100 results were returned, if so fetch again until it's some number less
just store all messages sent in a map
then after the ticket closes just unload the map in a file
wouldnt it fetch the same msgs again
for this
idk how msg fetching works when it comes to channels 😔
i just want to check if all msgs were collected
See the first link I sent you
channel.messages.fetch()
would this abuse API
or hit any rate limits
if i fetched all msgs in one channel
?
everything that involves calling discord api has a ratelimit
I need support about map method. I am trying to use map method with json but I got undefined
const a = [1,2,3,4];
const b = a.map(value => {name: value})
console.log(b);
{} creates a scope
You need to wrap it in () so it returns an object
aka => ({ name: value })
Thanks
so if a channel name was ticket-40010, how would i get the bot to print 40010
ik its slicing but how would i slice the channel's name
if the name always starts with ticket-
you can .slice(7)
number of chars before the number
Anyone knows how do we check if the user has his DMs on?
try sending a message to the user via dms and catch any errors?
i doubt you'd be able to get it without sending a msg via DMs
You'd need to try sending a message and see if it returns an error.
Ohkk so thats the only way ri8?
I believe so.
checking the docs
How is the command page that you use emojis like arrows to control the page your at called?
There's not
What you want is pagination, which you either use a library or create your own handler
Hi c:
So, a ship command
You will need to take the first argument and the second
And make a number randomizer
Cn any one give me working codes or discord rpc
Again, that is spoonfeeding
Mean help me
I'm confused on what you're asking. Could you rephrase the question and provide more context?
His Discord RPC isn't working because his file cannot be found in terminal
Hmm right
What did you do so far?
Yeah, you can't use repl for that
I'm... pretty sure you can't use any OTHER computer for RPC, as it needs to run on the same machine as your client
afaik yeah
RPC = direct app communication
Show us a code example you made
just do it for me I will copy it uwuw
Whts thing need do replit
No
ok
We don't do that here
You cannot. It is not possible.
Doesnt work on Replit
It's literally impossible to run RPC from a separate computer
See it cnt work in replit
yikes.
..
All the more incentive to learn more
uhm
is that... a discord bot maker?
ok
It literally can't, you need to use actual code editor
yes
or notepad, that works

help
oh no
yes
noooooo
Hmm
Oh boy
not you
Nothing wrong with using a bot maker
this is tuff
It's like Scratch but for discord bots
yeah it's just a bit "hmm" on our side
ok
as long as it is a custom bot / has custom commands it's okay
idrk how to make stuff in a bot maker, sorry :c
same
How mention user in embed
cya pepes
And with that stuff only allowing you to run the 'bot' on your phone?
Same way you mention them in a message.
Kinda eh
NOW PLAYING
24k mood @VAIBHAV#9662
<@id>
Like this
yeah either <@id> or just put their user object in a string
Cnt work
it will mention but will not ping them

it doesn't ping???
I try but it cnt work
${user} afaik
that works in djs
it depends library too
didn't mention users in embeds forever
because of the stringify method
then you got the id wrong
yeah, djs is still the most popular, i think
Hmm yup
but im more used to dpy ^^"
Nothing
again, please don't ping me for every message, you answer to
Why bot got lag in replit
Also mentions in embeds are deprecated According to their api server. So it won't cache the user separately

it's repl, what did you expect
Yes do
That means it might turn out @invalid-user
yep
true
nothing you can do about that tho
any more app like that
i dont think so
Buy premium > Boost
i mean there is heroku and glitch
but for large scaled bots you gotta get a paid service
glitch dosen't work anymore
imo
Heroku = garbage
replit = garbage
yeah
repl is basically the "best" free one
Glitch = nothing it's only fucking shit
ig
but a free hosting service isnt a solution
yeah
Glitch cht do hosting why
glitch = garbage
if you really can't do anything else, use repl
You can get 2yrs on AWS for free with GitHub Student
Heroku also always have hosting problems
especially when your bot requires databases
What did you expect from a "FREE" host ?
like Postgresql, MongoDB and MySql
have we evolved from sql yet
I think uptime and replit do good thing for beginners
Postgres is still SQL
yea okey
Guys find trick for how host glitch project in uptimerobot.com glitch ban uptime lol
?
you dont
Glitch ban uptime monitor
yes
May I ask how long you've been programming
you cant host on glitch anymore
glitch banned uptime like 2 or 3 years ago prob.
Nah more like a year ago
a bit less than half a year iirc
idk been forever
Yes that's why glitch - garbage x100

all free hosts are garbage
People were abusing the same system you're trying to use right now
it's a contest of which one stinks less
Not replit
garbage
garbage
I never use that
but at least that one is recyclable
Glitch is fucking shit
And Replit
hmmm no
any way no one here is getting anything done arguing about free hosting services. this is like shooting tin cans with a spud gun in a patch of wasteland
Glitch:
- Gives only 1000 hours
- Will shut down after 5 minutes
- No ping revive
- 10$ for premium (You can get 2 VPS for that)
And you gotta search for awhile to find the right vps that suits the best etc
r/OddlySpecific
It's the true definition of shitposting.
price - omg I stole my kidneys

ig you meant "i sold"
10$ - 1000 Indian rs

imagine not stealing ur own kidneys
somehow
1000 - my pocket money
If you'd sell your kidney for $10 dollars I worry what you'll sell for an apartment
assss
Like
Heroku only has like 21 days of usage per month doesn't it?
that one answer that pops up in my head
Google cloud has a free forever vps.
you will still have 200 left I guess
@earnest phoenix for how long you've been programming?
"Without credit card verification"
Ah, just get a free debit card and your good
3 months
I have heroku 1 year subscription
Raspberry's are good
Cn you give me Web link
But still they reboot the server every 24 hours, No local storage, Oncrash kill process (They're basically being an ass tbh)
3 or 4 ?
It isnt expensive
Oh,
I have a 4 (4gig)
Damn
gcp is free for a time but you'll need card
xWass take care of ur hands 😠
Would anyone recommend using coffeescript or just stick with plain javascript 
cause coffeescript looks so much better
Xwass cn you teek how use Google cloud vps
Then sign up for GCP, AWS, DigitalOcean, Vultr (All their free quotas will keep you up for around 5-7 years)
yea
ig coffeescript is a bit outdated
Mean I got its for 6 years
Hmm maybe I should usethre free quotas of aws and gcp
kekw
First time ?
I'm on digital ocean atm
im lucky that i got a vps for like 4 dollars a month 8gb 
Yeah first
otherwise uh it would be a bit expensive
Dayum
You can use any JavaScript library with CoffeeScript, so it's not like it's for nothing.
You just gotta do research my guy
link ?
But I've seen more people use TypeScript.
A friend has his own vps company
CoffeeScript would probably be something nice to use on the side and decide if you want to use it in a real project.
So im very lucky
do you have any idea?
So you can't use a pc then ?
(A vps is basically a pc running somewhere else)
reboot
well I mean like there's a few reasons why typescript is op
its not working
l u c k y
probably cause ur internet is a bit slow?
it usually happens when my internet was slow
i asume most people here use JS?
but also vds
actually more ppl use python but they are mostly silent is chat
whenever i say i use python some people hate it
You can find python coders in #memes-and-media
but eh i dont see the reason why 
You probably are not catching an error so the program will stop because there is no way of dealing with this error.js is not my main language but that is what it looks like
oooh
true and you don't have to remember to install those annoying type packages

Java person here xD
How many time you do bot making
Although I don't really care about what language
I learn on knockdown
If you're not a Data Scientist (or not a beginner) Python is kinda overkill for a Discord bot
I went from c# to Python
Please lend me your wisdom
Certain languages for soecific problems. Python is kinda cool tough because of how readable it is.
I've never used TypeScript myself since I just seek out other languages.
Java is interesting tbh
But the type packages look annoying
Wisdom?
and in general type safety with javascript looks annoying
what you mean?
You got ts for that
I have been coding js for an hour but I still say it's shit
that's what I don't like
in some parts i agree
honestly nvm
i totaly agree haha
If you only tried it for 30 minutes then that's a bit early
Discord.js seems popular
if you can't take the complexity of ts then , EVER TRIED JAVA ?
probably populair bcs of the youtube tutorials on youtube 
atleast if you search how to make a discord bot
It's that I don't like how it takes an extremely dynamic like JavaScript and wraps it in a type-safe environment. I feel it takes away from JS's dynamicness (even with keywords like any).
There should be videos on how to grow bots instead of making them. Maybe that would stop 99% of devs making the exact same multipurpose bot.
True
AND
you can fuggin write public class void null blah blah Main(string[args]) and complain about let Hell:Number () => {}
ts is for companies and huge projects where it's useful to catch type errors before runtime, instead of spending hours on end to find that you used a number instead of a string
Yeah TS is useful for that + JavaScript interpolation
I'd say it's personally not for me
G O G O O G L E
Like 1 json file?
yea
Lol
economy bots
Let's hope they don't pass the 10 server mark then
TypeScript - JavaScript but with types
based of dankmemer cmds etc
ah okey
imagine having more users
You guys write unit tests or anything like that?
I do actually
I don't
I got unit tests with travis setup because it's shiny and students get it for free
not for discord.js btw
Too much potential in other bots for ne to be making music bots
And I gotno clue how to make them
Step 1: Search Google for GitHub codes
Step 2: Clone the repo
Step 3: Change the bot name, prefix, tokens etc
Step 4: Run the code
are you smart enough to understand buffers?
yes -> ffmpeg and lib docs
no -> use a library to do it for you
also
a shit ton of ram
you really don't need a music bot
The category is well-satured
Music bots takes so much ram
they don't
To run them
it's just your shitcode
My bot generates a lot of images which is becoming an issues because it is growing and using too much memory. When my holiday starts I will fix all that.
And my shitcode yes
oh i was referring to chizy
All shitcodes
No I also have shitcode :p
Yea probably
Just the music part is shit
I removed it and it just works way better without it
It was supposed to be a small project, then put it up on a few lists and a few months later I noticed it started to become popular. I had no clue until that point.
Yea
I had the music part
But like only 30 servers out of 9K wasnt really worth it to me
also started like that
except mine was to practice for my graduation project
i've used typescript a few times and installing type packages are super annoying
no
never used gcloud

How so?
npm @types/package_name
Yes but I'm too lazy to type that
and it's annoying that like you would have to test if the package has built in types
i mean like typescript isn't bad
Would u rather write the full thing by yourself or download thr community maintained one
probably download the community maintained one
You can also hover over the error and simply click "Fix Issue"
fair enough
this help thx
oh
||thats actually sad since djs isnt even supporting slash cmds yet||
I wanna make my own module cuz of that
That's bot even relevant lol
What can do this then?
I found it on the web
Wym
Slash commands aren't relevant with RPC at all in any way.
Find a software or script that can set RPC status. Discord.js isn't it.
Oh I’m not about RPC
Im just about slash commands in general
They’re not released yet
node.js?
In djs
Ok well you seems to be inserting yourself in the conversation I was having.
No I just said that RPC and Custom statuses aren’t supported by bots is sad
Ok well... ok, cool, I don't know why you're pinging me about it
Anyway imma head out
Either you're not paying enough attention to what they're saying, or they're misinformed. Or just really old and no longer relevant
can node.js do it
?
discord.js cannot and has never been able to do RPC
nodejs is a javascript engine not a library 

ohk and i am not a coder so don't do that
Then don't look for scripts that do this
find applications or software that can do it
Ok well we can't help you here then
npm install no-one-left-behind
yes
yes they are, in the master branch
How long ago?
Pretty sure the interactions PR got merged
"module not found"
no idea what modules since you chopped off the useful part of the message.
ty
There are things that kinda do that, like https://github.com/Pizzabelly/EasyRP this
you don't need any coding experience for it
btw
Is it even possible to RPC a bot 
any one say how host rpc in which soft ware
probably not but you can try it
I don't think it lets you lmao
If the bot is on the same machine as the Discord client, you theoretically could
yeah
it would hook into the clienton discord
not on the bot
the bots just a process lmao not a actual client
Unless you somehow logged into a bot account on the official client
If yk what I mean by that
the client would not like that at all though
That's self bots which is against tos
I mean an actual bot's account
Yeah thats also against tos lmao
but the official client calls an mfa endpoint which bots cannot call
And you can't do it in the actual app you have to do it on some sort of site
which constantly gets taken down
yeah exactly
I'm getting this error: TypeError: Cannot read property 'get' of undefined
And here is my code (the commented out code is not working)
let stats = await db.collection("users").findOne({_id: message.author.id}, {});
if(!stats) return message.reply(`you haven't started the game yet. Please type \`${prefix}start\` to begin the game.`);
let exp = "You have no active EXP booster.";
let valtz = "You have no active Valtz booster.";
// let booster1 = client.expboost.get(message.author.id);
// let booster2 = client.valtzboost.get(message.author.id);
let now = new Date();
// if(booster1) exp = `x${booster1.amt} (${Math.ceil((booster1.time - (now - booster1.start))/1000/60)} minutes left)`;
// if(booster2) valtz = `x${booster2.amt} (${Math.ceil((booster2.time - (now - booster2.start))/1000/60)} minutes left)`;```
client.expboost does not exist
^
if you assign to the client somewhere, that code wasn't run
looks like a collection
the safest way to assign props to the client is to extend the client class and construct that instead
yes
or just a Map
in react, when a useEffect gets triggered, does the component gets rerender?
Only if you change some stage in the effect
u mean useEffect's dependencies?
Pretty much
Anyone know any other way to update a variable in a status so we don't have to update it's status every 30 seconds or so?
I've not found any other way to update it
For ${client.users.cache.size}
you have to update it, it won't change it automatically
would allowing the status to change every 30 seconds still be considered API abuse? even if we aren't changing anything in the status itself
No
Just want the property to update
how could we do it differently?
or is it only in that way
you can keep the previous value inside a variable
in your interval, compare that value with your current one
if it's different, update the presence and change the value to the one you just set
The useEffect gets triggered when one of the dependencies of it get re-rendered. useEffect won't cause any re-rendering unless you update the state in it
hi
Do someone know why discord.js library just stop uploading data of video and stop playing I must skip to song so it'll start playing again and when I want to resume music I must resume, pause and resume dispatcher instead of resuming it once.
I tried to log debug event error event and all of these events
but it seems like it just stops uploading the stream
the server's upload rate just goes down
its not a fault of d.js i would say
I desabled all firewalls disconnected from proxy and its not working
sounds more like an issue with the way you provide the media
yea, have fun with getting your server pirated
i dont make music bots bcs they are a pain in the ass to maintain, but it sounds like yt-dl makes some stupid stuff
yeahI have 5 music bots on 1 stupid prefix
once I wrote command to wrong category in configs and it wasnt working
cuz its 5 bots on 1 app
its 5 bots on 1 prefix
why
I must reach all 5 bots on one app
so algorithm can chose witch bot will be used
you can play music in 5 channels on server and controll it by 1 prefix
maybe this is your issue?
no
like 5 bots run at once and someone uses a stop command for a different channel
nope
also if all of them run on the same Server, you will get IP banned by YT really fast
no that issue
I locked it to me
and it only downloaded stream and data once
as one bot
since i dont do music bots i dont touch voice stuff since there is no need for me.
idk maybe Its becouse I am getting stream from data-handler and play.js requires that data-handler
pain in the ass is spliting streams so you can skip command
idk how to do that
1 buffer = 1 second
hey guyz, i recently found a way to get global covid19 stats directly by WHO!
no more API ratelimits! you can get all the data from here -> https://covid19.who.int/WHO-COVID-19-global-table-data.csv
you can save the response as a CSV and use the data with a library that you can parse csv files. like pandas for python or dataframe.js for node.
no, the bigger issue are IP Bans. most larger bots rent a IPV6 Pool and switch them frequently to get around the IP ban
you could make yourself an API that downloads once per day the csv and exposes it in a structured way.
That sounds interesting
thats true!
Thanks for bringing it up
np
but covid bots will die quickly next year or so
i just dont like to use API's and consider about ratelimits.
so i tried to get the data from WHO and succeeded it.
my bot isnt a covid bot. i just want to add a covid command till covid is end
if it fits your bot then sure.
how often is that file updated tho?
don't fit the topic of the bot. it is a timetable&reminder bot. but i'll just add
you have to download the whole thing again in an interval to keep it updated
i suppose each time you request
no





