#development
1 messages · Page 563 of 1
^
In TypeScript I see someone doing js function rolesSetup(msg: Discord.Message){
thats typescript, you have to define what the interface is or it won't compile
Message is a class that contains everything for messages, you can't use it yourself
so yesterday i asked about why discordrb's play_dca was stuttering on heroku server
i have the metrics now
but idk how to read it
lol
feels bad then i would host it on somewhere like digital ocean? lol
i have a droplet lying around so i can just use that
if you have a vps lying around why deploy on free hosting
🙃
Can I use multiple machines to do sharding, or do all the shards have to run on a local instance?
You can
👌
That's the purpose of sharding to begin with
OK do you know if the sharding manager spawns a new shard, if it isn't online, or if it's not running on the local instance?
lol...
I don't use a sharding manager so no idea
Neither database is good tbh
selam kızlar sikim sızlar
Enmap does use sqlite for persistent storage, however
@keen tinsel botun varmi
@amber fractal it can also use rethink, in memory, json, etc
no turkish here omfg 
>"senin sikin varmı"
Nice
do you know them websites that tell you whether a website is safe? is something that does that but for discord users and discord servers against any discord api rules?
I mean I think they already exist
yeah discord already has a url filter
http://discordapp.com/terms https://discordapp.com/developers/docs/legal and https://discordapp.com/privacy have fun
Integrate your service with Discord — whether it's a bot or a game or your whatever you wildest imagination can come up with.
not something on discord that tells you whether a website is safe. A website that tells you whether users and servers are good or bad.
So like a list of servers that are bad and if it is it tells you or something??
i think there were several attempts at doing that already
It couldn’t be very good lol
There’s only so many servers that a bot will know is bad
judging whether a server is "good" or not is very subjective. A server for black humour might be pretty lit for people who enjoy that type of humour but utter garbage for the ones who don't
But like I said I believe that already exists
Is there a way I can easily see what part of my code is taking up cpu usage
Cause my bot’s cpu usage is pegged at like 80%-90% right now and I don’t know why
Ill have to go thru my code and see if I accidentally have any dead loops
Cause there shouldn’t be
using a profiler
post your code?
:/
@_@
copying code will not work 99% of the time, just so you know
because every piece of code depends on more code, and is designed specifically to work together with more code
you need to at least know how to connect pieces of code together
copy all of the code = profit 
even if you copy all code, it will still probably not work due to missing dependencies or environment mismatch
lmao
tru
i mean, you can always resort to stackoverflow threads if you can't keep your shit together 
inb4 posts generic error on stackoverflow with no context
now im googling funny stackoverflow things
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha```
LOL
Anyone who knows how I can set a background pic for the bot?
Like here on the white sides
with css
right click > inspect element
check the existing css structure
you can even add your css right there in the inspector to test it
someone got a commando YTDL loop command I can borrow?

how does one "borrow" code
take it look at it and use some parts of it for its own
thats stealing
how is that stealing if you ask for it
borrowing would imply you would return it
i wasn't referencing that
if i was, i would have quoted it
why are you all making such a big deal for a loop command I can do it too but I just wanted to save time if someone would want some common code from me I would give it to him why not
ok
the time you wasted arguing could've been invested into doing it yourself
yeah 😦
doing stuff yourself
How do u enable bots... anyone know??
what does "enabling bots" mean in your context
I invited tickety and I don’t know who to make the commands work so I’m confused
wrong server
this isn't a bot support server
Oh okay sorry ;-;
check if the bot has enough permissions to read and write messages
then ask in their support server
Do you guys find the optional libraries for Eris to help with performance?
Like bufferutil, erlpack, zlib-sync, etc
k
the difference shouldnt be big though
did u install all of them?
the ones recommended
the ones that say its native and faster
oh
and zlib-sync instead of pako
native != faster fyi
oh
it's not guaranteed to be faster
and there's the managed -> unmanaged gab which adds overhead
When I tried out Eris for the first time, despite everyone saying it was faster, I found it to be kinda slow, in comparison to d.js
well if they say its faster, they should have made extended tests on it to confirm no?
or would they just throw out words like that?
not saying it isn't faster
but assuming native is better is wrong
in fact, it's worse because you lose compatibility when you go native
well i did say native and faster
but am i wrong in assuming that most often than not, native implementations should in theory be either faster or cost less resources because of not needing multiplatform/compatibility overhead?
if you're working on a server side system that isnt going to move anyway, going for native should be a good idea no?
if you got from managed -> unmanaged or unmanaged -> managed you always get overhead
managed = code that node fully controls
unmanaged = third party natives
if you never leave managed code node (or any other jit) is able to do more optimizations
unless said code is orders of magnitude slower when performed by node
such as image compression/manipulation in pure js
another thing i found interesting was node/javascript's performance of searching arrays
i have a file with about 500k lines, and exec'ing grep is much faster than doing array.filter() with the entire file contents in memory (about 10mb)
because grep doesn't need to load it all in memory
yeah, but i did the test with the file already loaded in memory
unless node swapped it out
i saved the array in a var, then timed the array filter function
how do you fix that issue where your bot replies to any {x}-length prefix
you check if the content starts with the prefix
i do that but it replies to any of those length
then you're not checking if it starts with
const p = prf.find(pre => msg.content.startsWith(pre));
if (!p || msg.author.bot || !msg.guild) return;
like the default is -
but it replies to ! and all
arent you going through all of your prefixes until it finds one that matches?
^
lmao
Thats looking at everyones prefixes
not a specific guilds
unless prf is the prefix(es) of that guild
why don't you try using a debugger instead of guessing
because i can't really launch it right now while my internets being hugged up by a download
https://i.ryeqb.me/140e00402d.png may or may not have overengineered it but i had the same issue at some point
input[0] is gonna be the prefix so you can compare that against the server's prefix
old code but does the job
i use find on an array because i have to check for multiple
so nothing i can change there
ah rip
you can check if the array includes the prefix
thats what i'm doing already??
I mean what I just did worked but its ugly 
Something about this is making the bot crash

I cant see much from that on mobile, but put it in http://esprima.org/demo/validate.html see if it has syntax errors first
Tony, what you're doing looks like this then?
https://i.ryeqb.me/c6e3b572a2.png seems like a very well maintained library
if only there were other options that are maintained
don't use discord.io
it's unratelimited and poorly designed
you can switch to discord.js
How much code will I have to change for that
just about 100%
Oh boy
Posting stats uses the token as authorization right?
Does it take a minute to work because I keep getting unauthorized
"Authorization"
Yes
In headers
I know I've posted stats before
All working now, not sure what it's problem was
it uses the dbl token, not the discord token
unauthorized means the token is wrong
https://i.ryeqb.me/ba2a47bb24.png EA production btw 
LOL
How long does it take to make a bot? ;-; I don’t understand coding :/
as long as you want to code it
;-;
Ok
it actually depends on what type of bot you're making
if you dont understand what you're doing, it will basically take forever
if you're very good at what you're doing, it depends on what kind of features you want, and how many
How to find out number of shards bot?
Yea but damn how do you let this through onto prod, don‘t they review their code
what've I done wrong? It worked fine in eval.... https://hastebin.com/romowulolu.js
target.member doesnt exist
target is already a member
you're doing member.member basically
🤦
how can i make my bot play 1 specific youtube video in a voice channel with a command?
would it be something like await connection.playStream(https://www.youtube.com/watch?v=XAX-f4Q7If0, { filter: 'audioonly'}));
In Discord.js I want to list every channel the bot can see. In order to do so I need to break up the following string but I have no clue on what to use. let guildArray = client.channels.array(); message.channel.send(guildArray);
@earnest phoenix depends on what library/package you're using for audio
@formal agate every channel from all guilds?
btw dont send a message to all channels
Can be per guild
thats api abuse and might get you banned
if you want the channels from the current guild, do message.guild.channels
just client.channels.map(c => c.name)
to list them you need to create a string
i guess im using ytdl
then do client.guilds.get(id).channels
Oh he wanted perguild?
I still need to break it up because it quickly gets over 2k characters
allow splitting
Which is the main issue
Its an option in messages
?
you can break the message up using the split options
Split breaks up per 2k?
default is 1950
Hmm ok
or what you specify
Hey how could i make my bot leave a voice channel after a certain amount of time?
so like 15 seconds
look into setTimeout
from the beginning or after it stops playing?
15 seconds from when it starts
use setTimeout
probably better if i do it for when it stops playing though for future refrences
you can also use setTimeout for when it stops playing, but you should also use clearTimeout to cancel it if it starts playing again before leaving
okay thanks
Problem is , im not trying to timeout the command , im trying to run a different command after a certain amount of time
//whatdo
}, ms)```
oh so i guess im using it wrong
you're not supposed to timeout your entire command
only the part you want to delay
check w3schools and mozilla dev website
they explain very well how to use setTimeout and clearTimeout
okay ill check it out so i can learn more about it and thanks bentley that helped
Wheres the thing wrong with this?
(Sorry for quality my screen has water damage)
missing the second '
Lmao
Oh fuck I'm blind lol
you can take screenshots ya know
so I'm trying to create a very basic command for a more or less test command for what my goal is to be a reminder bot.
I keep getting an error in the file for the command it class saying that client is undefined.
for the command
Yes, is it in a different file than your main file?
Yes it is but I should have it so that it extends properly
What lang/lib are you using?
JavaScript discord commando
you have client defined as your new Discord.Client() then?
yes
Like for me its bot because this
Alright
I dont use Commando
Ill look up some stuff in a sec
i'd really like to know how they make those const, var, let things italic
wym
commandPrefix: '!', ```
sorry I can't get the formatting for the codeblock right but you get the idea.
Yes it is
thats just my editor
Its an online one because Im forced to use chrome os
oof
and I cant download any actual programs/apps
uh thats sad
Ik
cant you install another os to chrome devices?
Its a school chromebook
making it italic isn't that hard after you have a proper editor for <lang>
oof
im talking about editing my current theme
aren't chrome devices arm
I'm saving up for my cpu for my pc rn
there we go fixed the code block
hello, im following this tutorial https://medium.com/@moomooptas/how-to-make-a-simple-discord-bot-in-python-40ed991468b4
and im now getting an error on the last part where it says to put my token when i run it
error says NameError: name 'part of my token' is not defined
you need to make the token a string
you're doing .login(TokenGoesHere) but it should be .login("TokenGoesHere")
unless you're using a defined variable that is a string
throw err;
^
SyntaxError: /home/marv/config.json: Unexpected string in JSON at position 74```
Getting this now
`import discord
client = discord.Client()
@client.event
async def on_ready():
print("The bot is ready!")
await client.change_presence(game=discord.Game(name="Making a bot"))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content == "Hello":
await client.send_message(message.channel, "World")
client.run("my token is here")`
now im getting an error that says
The bot is ready! Ignoring exception in on_ready Traceback (most recent call last): File "C:\Users\trevor\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 227, in _run_event await coro(*args, **kwargs) File "C:/Users/trevor/Downloads/testbot.py", line 8, in on_ready await client.change_presence(game=discord.Game(name="Making a bot")) TypeError: change_presence() got an unexpected keyword argument 'game'
@restive halo at position 74, you have an unexpected string
TypeError: change_presence() got an unexpected keyword argument 'game'
if you are using the correct version of discord.py, game is deprecated and is replaced with activity
Not sure what the unexpected string could be, its just got the token and prefix in
The problem is on this line await client.change_presence(game=discord.Game(name="Making a bot"))
there may be an extra string or a key without a value or a value without a key
so i was using the tutorial as a guide, but then i just copy pasted the tutorials code exactly how it says how to do it, and got that error
then its outdated
yes, read my message
can someone help me run my bot on my chromebook
so just change game to acitvity
yes
b0 t um 0n chr0meb00k
Checked over it a couple times (had an equals instead of : but that hasnt fixed it) made sure the token was correct but its still saying the same error
Does json not like "%" or something?
works now, thanks
any idea why the bot list says my bot is offline, or rather grey w/ "???"
@restive halo can you show your json file, omit the token obviously
it means it's not in this server for some reason
luca is not able to fetch your bot's status
You can use codenvy.io I have done it before
interesting, not sure why that would happen
check mod-log
I checked for him, there are no logs
@lucid yacht can you ping the bot?
Nik you can use codenvy.io to create and run a bit on a chromebook
i was memeing korean
Oof, but it still works
I don't have a ping set up, it's working in every other server though
"token":""
"prefix":"%"
}```
missing a comma
no comma
values are comma separated
Oof
@lucid yacht not like that I mean @mention it
Ah, didn't know that, only had one value in the json previously
it's no here, I checked
Then theres the problem
ask a mod
okay
well the rules are a little confusing, it says I shouldn't tag them so I have no idea how to ask them
mention a mod
If your ping them for a good reason then your fine
@loud salmon you look cool, I choose you
Spider is a pokemon now
I'm having an issue with my bot not being on the server, but was approved
goes offline
poor guy is coding, I wanted to leave him alone
line 15, in on_message
await client.send_message(message.channel, "My commands are test! help")
AttributeError: 'Client' object has no attribute 'send_message'
@client.event async def on_message(message): if message.author == client.user: return if message.content == "test! help": await client.send_message(message.channel, "My commands are test! help")
@ moderators
It does not seem like it got kicked
Oof that's py bot, I don't do py
yeah I'm not sure what happened, it was tagged in the log when I was approved which (I assume) means it was in here at one point
Got it running again but the commands wont work now
I think the mod who approved it forgot to add it here, because there's no modlog cases
so I am trying to create a basic coin flip class for my bot bc I am real new to this, but it keeps saying client does not exist
oh okay
I have intialized client properly
Gotcha, very good to know, I was confused about how to go about it thank you
What language mjolnirs
Js
I would just use the math.random method, with parameters of 0 and 1, and have coin equal the result, and if coin equals 0 then have it send a message saying it's head, and if it's equal to 1 then have it send a message saying it's tail. That's what I would do
he said his problem is that client doesnt exist
It says it doesn't exist, when I've intialized it properly
show your code?
Just a sec.
Oh oof, do you const client = Discord.Client();
const client = new CommandoClient and changing the command prefix to exclamation point, and with the owner id
OwO, tim you can handle this, I never worked with commando
Hey im working on a command rn , im not getting any errors but my bot doesnt add songs to a queue instead it just stops what its playing and plays the next song. can someone help me find whats wrong? https://hastebin.com/sibefegapa
Did you push the song that's been requested?
@hazy flame thats not what is says here
for v11 at least
const Commando = require('discord.js-commando');
const client = new Commando.Client({
owner: '1234567890'
});```
missing the dot
@earnest phoenix everytime the command is run you are creating new variables, so your command never sees any queue
because it creates a new empty queue every time
hmm
or extend the base client
also fix your indentation
@hazy flame did you change your commando variable too? you created it as CommandoClient instead of Commando, so if you want to keep it that way, you have to use new CommandoClient.Client()
^
ohhh ok
const { Client } = require("discord.js") works for example
because require("discord.js").Client is valid
wait, then the way he was doing it fom the beginning should have worked
line 15, in on_message await client.send_message(message.channel, "My commands are test! help") AttributeError: 'Client' object has no attribute 'send_message' @client.event
async def on_message(message):
if message.author == client.user:
return
if message.content == "test! help":
await client.send_message(message.channel, "My commands are test! help")
@quartz kindle CommandoClient isn't exported by commando
too many branches
wait no
if he wants to destructure it, he has to call the correct name, not an arbitrary name
what he was doing is equivalent to const CommandoClient = require(commando).CommandoClient
yes
yeah so either { Client } or whatever then whatever.Client()
how can i stop my command from running new variables?
👏
let {key: variableToBind} = value;
you need to save something outside of your function
let/const
@earnest phoenix either create an object when your bot starts, then save and retrieve data from it, or assign a storage area to an existing object that you can access from the function, such as client
can someone pm me to help me with python
someone know a autoreload ?
what do you mean an autoreload?
instead of doing a reload command, changes are applied automatically?
so a hot-reload?
you'll need to watch the fs for changes
or just use something like pm2 --watch
pretty much every OS you'll use has a method for that
pm2 watch restarts the whole process
which may not be the wanted behaviour
clear cache and re-require the file everytime a command is run, like some dude was doing lmao
this is a joke
I only clear cache and re-require when an update happens to a command
but I do it manually
fun fact wsl doesn't like to work when you log in and out
it does
you can't run dockerd in wsl
but you can run docker for windows
and use it from wsl
yeah I need the daemon
also the kitematic for docker for windows is broken
just use the command line
¯_(ツ)_/¯
docker ps, docker container ls --all
docker image ls
I use it to browse the docker repos/w/e
help me host a bot on linux
how can i use Date to get the full "january" word
like i got new Date().toString()
but that'll give me Jan
use an object of names?
Convert jan to January
'Jan':'January'
^
theres no auto way of doing it?
Unless you wanna download a package for it, which would be pointless
'Jan':'January',
'Feb':'February'
//...
}
convert["Jan"] // "January"```
h ok
how could I write data to a file?
then send the file
to a specific channel
using fs
why write it though
It may be too big to send
but you could split it tho
but might annoy some people
The file will be sent to a dev channel
do you know how to attach files to a message?
Nope
What lib are you using?
D.js
has some examples
I haven't used D.js in so long I forgot there was a Docs
Lol
Also
how would I actually write the data to the file
I had an example before
and I asked if it was correct and someone said no
even though I did what the docs said
The link above (https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options) is for writeFileSync
should be what you want
embed, files
sendFile is depricated
no, it returns undefined
Hm?

If you try and save that as a var it will be undefined
oh i see
gg channel switcher
class Shirt extends Tony{
constructor(tony, shirt){
super(tony)
this.shirt = shirt
}
}```
Wait
You'll have to write and then read again @lusty dew
bad
just send it as an attachment
^^
read the file?
you dont need to read it if you're just sending it as an attachment
Well I was going to have it save to a folder as well
yes
after you write it just send it as an attachment
Mk
But can't I also just use writeFile?
what is the difference between writeFile and writeFileSync?
WIll fs write to a file that doesnt exist to create it?
I think what you're trying to do is save the logs in a txt file just in case
Yes @amber fractal
Fs automatically creates a file if u try to write in a file that doesn't exist
If u use writeFileStream tho
then you can use writeFile, but it wont make a difference as you'd be sending it as an attachment anyways
Yea I know
and the callback is only an error
WriteFileSync is more appropriate as when your app has many tasks at hand writeFile usually messes up whatever it has to write
ima just use fs.writeFileSync
I wanted to like
save the file to a folder as well then send to a channel
writeFile is for if (err) throw err; type of stuff
so in case it doesn't send to a channel hopefully it will save to a folder
you could just try and catch then write on catch to save space
^^
try{
let format = "tc!poll <title> <question(s)>"
let title = args[1]
if(!title){
return message.reply(`Didn't supply a Title! : ${format}`)
}
let question = args.join(' ')
if(!question){
return message.reply(`You didn't supply a question(s) : ${format}`)
}
}catch(err){
if(err){
let code = Math.random(s)
fs.writeFileSync(`${code}.txt`, err.stack)
}
}
I am doing a try and catch
lele
Oh
Yea I always use try and catches when messing with errors
yees
Gotta change that to channel send
channel send is also a promise
Oof didn't know
👀
it doesnt matter tho
reply is just a fancy channelsend that adds @ User,
no
Yea
That is why I usually use reply
you dont need to resolve it
i use send
i use reply when there are unexpected errors cuz im too lazy to write out the whole thing that would likely only be seen by me so idrc if it looks perty
I use await on just about every line 
./path/to/${code}.txt
Wot
lol

./ goes the the processes file
./entire/path/that/you/want/i/dont/actually/care/${code}.txt
u don't need ./ in fs.writeFileSync
because sometimes fs just does stupid shit and goes to a different directory and screws up
I prefer to do that tbh
because all my files come from that
fs automatically prepends the directory
have fun thanks
how would I read the file so I can send it to a channel as well?
readFileSync
you're right, my bad it should be ./this/is/a/file/path/because/you/wanted/a/real/path/for/some/reason/and/this/is/definitely/a/real/path/${code}.txt
so basically
I'll be going
fs.readFileSync('errors/${code}.txt')
^^^
read it in utf8
doesn't actually matter cuz that's default
Mk
does it?
not read
hmm
no just do fs.readFileSync("path", "utf8")
fs.readFileSync(`errors/${code}.txt`, 'utf8'
then I can do something like
.send right
or
yea sure
utf-8 not utf8
I would get the channel I want it to send to then send it
no its just utf8
its utf-8
just do var = fs.readFileSync etc.
then .send(var after whatever formatting if any
It is utf8
they both work guys
the node docs use utf8
calm ur tits
Use utf8 or die
utf=8

message.channel.send(fs.readFileSync("path", "utf8"))
my bad a better way to put it would be <Channel>.send(fs.readFileSync(`path/${code}.txt`, "utf8"))
sorry wrong channel
if(err){
let channel = message.guild.channels.get('540406836311097374')
let code = Math.random(s)
fs.writeFileSync(`errors/${code}.txt`, err.stack)
channel.send(fs.readFileSync(`errors/${code}.txt`, 'utf8'))
}
I just did this
yep that should work
?
lol yea
your sending what you wrote
which is err.stack
channel.send(err.stack) would be identical

if(err){
let channel = message.guild.channels.get('540406836311097374')
let code = Math.random(s)
fs.writeFileSync(`errors/${code}.txt`, err.stack)
channel.send(err.stack)
}
my bad
But if the error exceeds 2000 character limit
Hm?
when you read the file, you're getting the contents of the file i.e err.stack
if you want to attach it, then send the file
it has an example on how to send files
what I just sent isnt depracated
deprecated*
Mk
channel.send({
files: [{
attachment: `errors/${code}.txt`,
name: `${code}.txt`
}]
})
Should do
Test and come back if it fails
Now time to try and find out how to make an error uwu
Hm?
Thats how you throw errors
if you just want it to go to catch
thts mdn's example code
you can just throw new Error("Blob")
Mk
@trail trout what
you want to make an api?
yes
look into express
ok now?
???
well get it
you can make a webserver with express, and you can use it as an api
many examples here on the express github
i have an example for it, give me a sec
ok
var express = require('express')
var app = express()
app.get('/', (req, res) => {
res.send('Hello World')
})
app.get('/randomnumber', (req, res) => {
res.send(`${Math.random()}`)
})
app.get('/418', (req, res) => {
res.sendFile(__dirname + '/images/teapot.jpg')
})
var server = app.listen(8081, () => {
var host = server.address().address
var port = server.address().port
console.log("Example app listening at http://%s:%s", host, port)
})```
@trail trout
so basically
app.listen starts the webserver
app.get('destinationorwhateveryoucallit', callback) will be a GET request
so when you use this api
you send a GET request to example.com/418
but you can do like
app.post and it will need a POST request
you get it
Was wondering for allowing prefix changes. Could I store server ID and the prefix they use in a separate json file?
Then access it like file.serverID
you should look into databases (spoiler: json is not a database)
you could store it as a json object but there are better alternatives
Fair point. I'll look into it in a bit
How do I keep my bot from pinging other bots and users when it’s not allowed to? I’ve looked through my codes multiple times and nowhere does a script tell it to ping random users and bot
What library are you using?
Discord.js
what causes your bot to ping people, is it a command or any message?
It does it when I tell another bot to tell a command
mind sharing your message handler
if its too long hastebin it
your <client>.on('message' (msg) => {}}); code
example code:
client.on('message', msg => {
if (msg.content === '!Lksjjd Are you online?') {
msg.reply('Im online');
}
});
is this your code or example code you just came up with
one of the codes
alright so 1.)choose a different prefix, ! is way too common and you'll run into issues down the road
2.) ignore messages sent by other bots
3.) ignore messages that don't start with the prefix you chose
k 👍
its the same as if you hit the reply button on any other social media website, such as facebook, twitter, youtube comments, etc... it will always mention the user you're replying to
i'll get back with results
the more you know i guess, will keep that in mind thank tim
How to change the name of the voice channel with a specific ID?
which lib
Javascript
language != lib(rary) 
?
which library are you using
discord.js? eris? what is it?
javascript is not a library
discord.js)
guild.channels is a collection of all channels in said guild, loop through that to get the VoiceChannel you need and use <channel>.setName() to change its name
Thanks
it says "message.send" isn't a function
but it somehow stopped replying to other bots
No
It changes per basis
whatever you textchannel object is
You're using discord.js right
yes
Then yes, <Channel>.send
k
if you're working on a received message, just get the channel from the message
like message.channel.send
it's message.channel.send
it worked finally
missing permissions doesnt tell you which line, you have to figure out on your own
How to write a message to a channel with a specific ID?) I'm really noob
provide your lib and lang
buy a vps
K
providers like DigitalOcean, OVH, Scaleway etc. should be good enough
@daring trellis if you're using discord.js, its channels.get(id).send()
you can get channels either from client or from guild
your bot is bad then
You know crysto bot right?
it's a fact that bots hosted on free hosting are mostly unpopular and trash because their owners are cheapskaters
Well... Your saying that to a 15 years old Boy with no money
@quartz kindle thanks
i mean, you dont need to waste money on resources if your bot doesnt need them
a free hosting can easily run a small bot
with a few hundred servers
But actually... The hosting is a code from the website tho
being 15 is not an excuse, i'm 15 too, you're supposed to slowly start funding yourself and not live from your parents, i earn my own money by working in retail
well, worked
have no time for a job because of school
not only that, but there are a quite a few providers which are willing to fund your servers if you're a student
so, no excuse
But still... Firs t... I can't work until i'm 18 years old so I can legaly work but i'll go to college so i still will not get a job
18?
that's plain false
Where you live
Just get working paper, you can start working at like 16 in my state
I live in Portugal Fishy
I'd invest in a pi, I bought it with my allowance
Ok... Let's start not arguing about things ok?
a pi would run on your own network though, which is most likely much worse than any vps out there
yeah, you can get an rpi, but it depends on your internet connection too much, you'd need to ensure that it's stable and fast enough
Ok... But let's not argue about it and talk about another thing ok?
does anybody know a way to "request" any image through Discord's proxy without sending the original image URL as a message/embed?
or how would you actually hide your server's IP when you need to request the image without exposing your IP and without using a VPN or a real SOCKS proxy
well, you can download the image and then send it as an attachment in your embed, instead of using the original image url (which will upload a new version to discord's media server, an create a new image url)
as for hiding your IP, i dont think thats possible without vpn
how to add wallet to discord and amount to it ?
bot wallet

what bot wallet
I dont think you got the right place
ah yeah let me just pull out 3 bots out of my wallet

i really thought i could get help from here but only what i get here is sarcasm thx
i mean you are not elaborating on anything
because you're being vague
I thought the question was a joke
soooo, high iq much?
i was asking how can i add bot like it could be !transfer @quartz kindle 200 and how can i add amount to bot ?
Are you asking how to create an economy bot? Or are you asking for help on an existing bot?
existing bot
This isn't bot support, and you never specified which bot either. Ask in the bot's support server
i think he wants to make his own
I just asked if he wants to make one or it's for an existing, he said existing
^
on his existing bot
¯_(ツ)_/¯
how do i remove an event listener in djs
like client.removeListener
I still dont understand, my iq is big low
they mean to dispose of the object
Imma just leave cuz I am not smart enough to understand
lmfao
do you know what it means to dispose of an object
but he said remove an event listener
im 97% sure they mean that, how do you do that to an event listener
