#development
1 messages · Page 507 of 1
columns and bot-img
if you do just bot-img, it will get replaced by this
so bot-img has to be more specific
by naming the parents that it is in
to at least the same level
how to make it more specific?
if you want an ultra specific rule that overrides everything without fail
body .page .wrapper-page #details .container .columns .column .bot-img {}
Lol
understand? the more specific you are regarding parents and childen elements, the stronger specificity your rule has, and will override less specific rules
lel
im setting up a daily command but i want it where they have to upvote the bot to claim how would i do that?
a small question
Somebody know how is to create a bot who pick the last topic and paste it in a channel, for example named "resources"?
@mild lily Set up a webhook and do it using that, check out the API docs and ask in #topgg-api for more information on that
@earnest phoenix What do you mean exactly?
That's something you'd need to find using the documentation for the library you're using
.........
i can't find it
async def info(ctx, user: discord.Member):
await bot.say("The users name is: {}".format(user.name))
await bot.say("The users ID is: {}".format(user.id))
await bot.say("The users status is: {}".format(user.status))
await bot.say("The users highest role is: {}".format(user.top_role))
await bot.say("The user joined at: {}".format(user.joined_at))```
how do i turn this into 1 text?
so I dont abuse the API
before or after?
can any one help me out im making a bot with c#, i want to make a command to let the bot greet people but i dont know how and if i search for it i only find java script.
oh
then this doesnt help
i use python
oh
I still dont understand where to add \n
await bot.say("The users name is: {}".format(user.name))
thisis one line
"Current commands that are added to the bot are: \n" +
"!Leroy_Jenkis \n" +
"!LeroyJenkisMemeVid");
where do I add it
like this "Current commands that are added to the bot are: \n" +
"!Leroy_Jenkis \n" +
"!LeroyJenkisMemeVid");
that is how i did it
Can someone help me with this.? When a server joins, i want the server id to be recorded into an array.
No clue on how to do it.
use the guild create event
hi, which version should I use to code a bot in python
most people seem to recommend rewrite
I 've tried 3.7 but doesn't work
@torpid birch 3.7 is not supported. 3.6.6 is the latest stable version
If I use await asyncio.sleep(99999)
will my bot getting terminated for spamming discord api
how can i make it so if i type --testmode then whenever someone uses a command it says testmode enabled, commands are unavailable and they only work for me
well here's a global answer. For whatever language you are using, just google how to find text in a string. You can use that to find if --testmode is in the message. ex. (pseudo code)
message = "!test --testmode";
if (message.hasInside("--testmode")) {
}
@mild lily JavaScript
what you could do is make a command and do like ```if(msg === ${prefix}TESTMODE){
testmode=true
}
and then on the bot.on message do
```if(msg.startsWith(prefix) && testmode === true){return message.channel.send('testmode is on the commands are unavailable for now' )}```
And That Will Definitely Work?
I mean, don't just copy it
Edit it to your specific needs and wants
duh
would this be okay
for the command part
Hastebin please 🙈
No, it won't work
No, it won't work
If you look, you can see testmode which is undefined
then how i make it work?
TBH I wouldn't even use this code
do u know any documentation that would show how to do this then
Save the variable to a JSON and check that in the command you want
this wurk
chaining ifs
Easy way to setup a test instance would be to add t to the prefix i have 4 bots that use w/ h/ s/ mc/ but if i run the test instance on my computer it goes to tw/ th/ you get the point kek
You would either have to make the testmode var in the message event and use it in the commanf
Command
hm
I was making a currency system for my bot. The currency is stored in a file next to a user's user ID. The problem is with the leaderboard I'm making and having it sort to the top ten. The file setup looks like this: https://cdn.discordapp.com/attachments/496428130261663745/504396705588969502/unknown.png (User IDs are blacked out, amount of currency is on the right.) How could I make it only sort the currencies and not the user IDs?
Make it into a SQL database then come back.
Text will break your bot, trust me.
How would I call this function?
http://prntscr.com/l9mn5i
I tried
const database = require('./index.js')
const table = new database("datatest01")
console.log(database)
console.log(table)```
but none of the functions are popping up
would I use db = (class) then DB.fetch()?
Because I'm getting this from that example code
[Function: DB]
DB { name: 'datatest01' }```
does class DB have a constructor
Yeah it does
I also need to see more code because that snippet doesn't help
why is the constructor at the bottom
I put it there because I thought thats why the functions weren't showing up
It used to be at the top 😂
@topaz fjord you see anything wrong..?
Where are those functions going 
is there a way to get the main channel to create an invite link with ctx.message.server...
How do i print the server list the bot is in?
loop over each server and print its name
@earnest phoenix Yes
never heard of that before
Lisp, Is a language used in the world. Its an advancedish language
go > *
golang
Oh
lmao
Well, im not the best coder so is there any languages that are fairly easy to code a discord bot in?
lisp looks old and gay lmao
Its old, like 50 years almost or more maybe
well first off you need a wrapper for discord, and considering how lisp is so unknown you have very little chances on discord bots with it
Ok, any language you suggest?
@warm marsh did you mean the programming language lisp?
I'm not joining any sides, use your own preference what you like the most
@warm marsh what languages do you know?
that shit old
you can't make anything with that
(No bias) Javascript might be a good choice
tip: python and js have beginner-friendly wrappers, just so you know
^
is there a library?
@warm marsh learn a programming language liie JavaScript or Python (mostly java)
i need
@earnest phoenix by far the most enthusiastic person I've ever met lmao
I will use js for now
discord.js or eris
there's discord.js lib
ok i will read up
gl
is there a way to get in here, or do you have to pay?
cough discord.io cough
where?
https://discord.js.org/ for d.js - https://abal.moe/Eris/docs for eris
they both require node.js
I mean bot in here
oh
once you create your bot, you can add it to the site and wait for it to get verified
if it's verified then you get the role
no cost
ye
you don't have to pay a website just to list your bot 
I suggest you take some node.js courses because they will be pretty helpful when making a bot
i can send photos?
Ok that website is what im on
I am just downloading it
I will learn js later as goto go now. but thanks for help! 😄
👋
Any idea for noobs?
?
👋
and Dilzster why does your profile show the code that will console.log x as 2 two times if true and console.log 1 if false
it will always console log 2, then console log 1
because if(true) is always true, and the let x doesnt replace the previous one
question
for embed things
for the clickable text
it's like this: [Text](website here)
right?
i believe so yes
yes it is
Is there a way to get a server id that the bot has been kicked from?
Well i made an array that saves all server id
but idk how to compare it when it gets kicked
do you have permission from the guild owners to store those
also just use the guildRemove event or whatever it is
Is this the one you're talking about?
Client_LeftGuild
private async Task Client_LeftGuild(SocketGuild arg)
{
}
Its c#
oh lol
xD
well if you get the guild property there then your good
alright ill try it out
anybody able to try explain why my leaderboard isn't working?
const users = await msg.client.r.table('users');
const user = await msg.client.r.table('users').get(msg.author.id);
const top = users.sort((a, b) => a.current - b.current).splice(0, 10);
const embed = new MessageEmbed()
.setTitle(`Bread Leaderboard`)
.setDescription(`Showing the top 10 users with the most bread globally.\n\n${top.map(u => (top.indexOf(u) == 0 ? '' : '🍞' + ` #${top.indexOf(u) + 1} with \\🍞${u.current}`)).join('\n')}`)
.setFooter(`You are #${users.indexOf(user) + 1} on the leaderboard.`)
return msg.channel.send({ embed: embed });
it's providing them out of order and adding a blank field
what is the content of users and user?
users is an array of all user objects in the db
user is the object for the msg author
and thats the user objects
this part is one of the problems ${top.map(u => (top.indexOf(u) == 0 ? ':goldenBread:' : '🍞' + #${top.indexOf(u) + 1} with \🍞${u.current})).join('\n')}
you're checking if index == 0, and if it does, print golden bread emoji, else print the emoji + the rest
you dont need that check, just do top.indexOf(u)+1
as for the sort, if the order is inverted, just swap a and b
ohh
Yo guys, I already have the performed role established, but how would I get the bot to search for everyone that has that specific role and remove the role from them?
I'm in C#
i have a music bot and it works on my windows pc fine but when i try to run it on a ubuntu machine it doesnt work
anyone?
errors?
How do i make a bot?
how can i run my bot 24/7?
like I said you would need a server or a PC that can be left on and connected to the internet 24/7
or host it online?
yeah you can buy servers online and they will keep your bot running 24/7
yea
there are some good and relatively cheap ones in the pinned messages of this channel
any ideas?
you can take a look at those
Can somebody tell me why do I get a error that says Error: Cannot find module ‘discord.js’. Please help me
I have discord.js installed already but that still show up
@earnest phoenix make sure to run npm i discord.js in your project folder
keeps on getting 👇
/opt/watcher/app-types/node/start.sh: line 43: 4265 Killed
and 👇
(node:2658) UnhandledPromiseRejectionWarning: Error: Could not find MIME for Buffer <null>
at Jimp.parseBitmap (/rbd/pnpm-volume/5085597d-a62b-4ab0-a7db-b53a0e8be772/node_modules/.registry.npmjs.org/@jimp/core/0.5.4/node_modules/@jimp/core/dist/utils/image-bitmap.js:108:15)
at Jimp.parseBitmap (/rbd/pnpm-volume/5085597d-a62b-4ab0-a7db-b53a0e8be772/node_modules/.registry.npmjs.org/@jimp/core/0.5.4/node_modules/@jimp/core/dist/index.js:498:32)
at /rbd/pnpm-volume/5085597d-a62b-4ab0-a7db-b53a0e8be772/node_modules/.registry.npmjs.org/@jimp/core/0.5.4/node_modules/@jimp/core/dist/index.js:440:15
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
(node:2658) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2658) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
``` someone please help me
Could not find MIME for Buffer <null>
jimp cant figure out what to do / what file type ur giving it
because ur giving it null data

do u need the source code to tell me what is returning as null ? @earnest phoenix
becuz i can just give it to u now
anyone?
hi
what coding lang
make a function
that wont work
it isnt returning anything
function booltostr(bool) {
let returnthis = ''
if (bool === true) returnthis = 'yes'
if (bool === false) returnthis = 'no'
return returnthis
}```
something like that should work
no prob @earnest phoenix
bool ? 'yes' : 'no'
**I have some useful resources for JavaScript:
**
Understanding EcmaScript 6: The Definitive Guide for JavaScript Developers
http://www.r-5.org/files/books/computers/languages/escss/fp/Nicholas_C_Zakas-Understanding_ECMAScript_6-EN.pdf
The Principles of Object-Orientated JavaScript
http://www.r-5.org/files/books/computers/languages/escss/fp/Nicholas_C_Zakas-The_Principles_of_JavaScript-EN.pdf
JavaScript with Promises
http://www.r-5.org/files/books/computers/languages/escss/fp/Daniel_Parker-JavaScript_with_Promises-EN.pdf
Beginning Functional JavaScript: Functional Programming with JavaScript using EcmaScript 6
http://www.r-5.org/files/books/computers/languages/escss/fp/Anto_Aravinth-Beginning_Functional_JavaScript-EN.pdf
So it looks clearer 
maybe
Hi, how would I tell whether a user has actually voted for my bot when they do >vote so I can give them some currency?
It's for a friend
Why doesn't your friend ask 🤔
Cos he has a thing against asking for help
Idk y though

Can u help?
@earnest phoenix "they" can always use the api
Link?
Thanks
Bot.on(`message`, async message => {
if(message.content === Prefix + "shutdown") {
if (message.author.id === "336127427443032068") {
How would I make other people be allowed to use the command?
remove the conditional for message.author.id?
but if you remove it entirely, then anyone can use it
if ([ ids ].indexOf(message.author.id) > -1) { ... }
Okay thanks.
what process manager thing can i use for node.js apps
besides pm2 because thats broken af for me
and i already tried forever i fucking hate it
who is the dev of @rough quest ?
-owners @rough quest
hello?
So my bot cant send non jpg ulr`s
is there a command or a way to let your bot send non jpg s
also I cant find an image that is jpg
No
I added a link form google and a website @quartz kindle
And it give a blank
I tried the link out on google and it WORKS!
@gilded gazelle A lot of HTML, a lot
@coral trellis you have a fan uwu

@gilded gazelle html tables and js if wanted.
you can only add js if you have a certified bot
anyone that can make me a bot? please dm me 😄
lol
i feel like if i use wix it's like kinda being lazy and i want to play with html lol
bhi
im trying to make a system like there is a chance for something to spawn and you can fight it or run. i got the spawn down but the thing is the run part and the fight part will only take action if you the thing spawned from the message you sent so if you send the message hi and the thing spawned you would not be able to do anything but if it spawned from the message ;run or ;fight then the command will run how can i fix that?
without context, it means that the socket hang up
still no context provided
Error: socket hang up
at createHangUpError (_http_client.js:322:15)
at TLSSocket.socketOnEnd (_http_client.js:425:23)
at TLSSocket.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1092:12)
at process._tickCallback (internal/process/next_tick.js:63:19)```
uwu eval 15 + 2
I’m not sure if this is the right place to put it but - I got denied bc apparently my token was leaked? But I don’t know how, when my code is privately hosted and I’m not sure where the token got leaked at or how to even fix it. Can someone assist or guide me somehow?
:C
@untold cloak where do you host/put your code?
u sure bots can chat here?
any websites
no bots can
@ruby dust i was never here
It’s hosted on pythonanywhere
Link to my code? Gimme a sec I gotta pull it up on my computer bc the website on mobile is awful
Sorry I’m in class but I actually think I might have figured it out sorry for bothering you 😅
Just a quick one
In discord.js
message.mentions(...
Do you use an id?
Just need it to check if the bot is mentioned
@wide ruin
i did it like that dunno if its good practice though
const prefixMention = new RegExp(`^<@!?${client.user.id}>`);
// and later in the code when you get a message
if ( message.content.match(prefixMention) )
Is there a way to just get a Boolean
regex.test(<@bot id>)?
hello qts i got a qt problemo:
what im trying to do: update the now playing thing every so seconds after grabbing the json data
what works: window.onload, works like a charm
what doesn't work: set timeout, does nothing.
my code:
window.onload = function qtqt(){
let client = new HttpClient();
client.get('http://ip/getSongData', function(res) { //this works gucci
let obj = JSON.parse(res);
document.getElementById("nowPlaying").textContent = obj.message.nowPlaying;
});
}
setTimeout(function(){
let client = new HttpClient();
client.get('http://ip/getSongData', function(res) {
let obj = JSON.parse(res);
document.getElementById("nowPlaying").textContent = obj.message.nowPlaying;
});
}, 15e3);```
No codebox. Strange
w0T
There is no code box on the code
my code?
Yes
So where is the mention bit?
wdym
i don't get what question is this
im gonna go back to lurking and see if i can fix my shit
setTimeout will only go once, so u need setInterval for updating more than once @neat falcon
yeah just realised that
any error in console of browser dev tools?
@earnest phoenix regex isn't defined
unlucky
What do I define it as?
OWO IT WORKS
👌
arigato qts im a weeb coder 
hey i require help
i have started coding a discord bot in js. I dont really know any languages i just started js today
So can someone tell me if this is correct?
const discord = requrie('discord.js');
const client = new discord.Client();
const cfg = require('./config.json');
const prefix = ".";
client.on('ready', async () => {
console.log("Logged in as %s", client.user.tag);
});
client.on('message', async message => {
var args = String.prototpe.slice.call(message.content, prefix.length).trim().split(' ');
var command = Array.prototype.shift.call(args).toLowerCase();
if (command == "ping")
return message.channel.send("Pong!");
});
client.on(cfg.token).catch(e => console.log("Invalid Token"));```
because when i try use ping command it not work
try logging command and seeing what it comes out as
👀
ye
ok
it not work, i followed video correctly
but it doesnt work
ok it worked
How to make external commands?
i heard it on video
how can i add make a timer so when a command is run, if they run it again it says how much time until they can again? i have the response set up, just dont know how to get the timer
Can anyone help? I need some sorta bot where players in my server can write some info about themselves and the bot will store them and a command to post them.
As i'm looking to create a Fortnite Free Agent server and this will be useful as players can find info about each other easier for example my info would be !info Steady#1586 then it would show their stats, achievements etc
guys im big nub
how do i do this
store the time when they did a cmd store the time they should wait such as 6000 = 6s you then check the stored date subtract it by today's date - the cooldown
and have it so if they run the cmd it says how much time is left
that is simple english but okay, i want a timer on a command and if they run it twice under the timer it says how long is left for the timer, in minutes and seconds
JS
discord.js?
yup
give me a second and i will try help you. i am not the best as i just started
ok
Im sorry im not the best, i will try as fast as i can
Help meeeee
TypeError: command.run is not a function
try {
console.log(cmd);
delete require.cache[require.resolve(`./Commands/${cmd}.js`)];
let command = require(`./Commands/${cmd}.js`);
command.run(client, message, args, ops, eEmb);
} catch(e) {
console.log(e.stack);
}```
command.run is not a function
error is in the error
you've done soemthing wrong with the code thats why
it exists
becuase I defined it in the previous line
🤔
and ive done exactly the same in a previous bot
But the error seems to say that it isn't defined
You deleted the command out of the cache?
yeah
@warm marsh u get anywhere with the timer thing
yeah almost done
oke
ok
Anyone here using d.js master?
ye i use it
whats up with .addRole()? its not working anymore and idk whats the updated one of it
cant find it
@steel heath
ah thanks
yw
going to update my code from 11.3 to master, tonight will be hard i need someone
Okay
how do you get presence game's name now
thanks
yw
why wont this work
code:
https://hastebin.com/akakasixel.js
var to = ms(cooldown - (Date.now() - lastBump));
let timeString = `${to.hours} : ${to.minutes} : ${to.seconds}`;``` where exactly are you geting `hours`, `minutes` and `seconds` from?
@warm marsh
Ah so you were spoonfeed
no
Yes
no
Im not good coder
he just helped
but hours are coming from to variable
ms is a variable up top which is a module called parse-ms
Try logging to
and it turns a millisecond time and formats it so get hours seconds and mins
It might be undefined
yeah worked fine when i did it
just console.log(to)
that way you can see whats wrong
oh you dont have the var at top named ms
hello, i am trying to make a discord.js bot with a command that can send a random file. code:
if (message.content.toUpperCase() === `${prefix}RAND`) {
const path = 'C:/<my path here>';
const fs = require('fs');
fs.readdirSync(path).forEach(file => {
ranfile = Math.floor(Math.random()*file.length);
message.channel.send(ranfile);
})
return;
}```
however, when i run this and enter the command, it sends random numbers, and the amount of messages is based on how much files are in the folder it seems. does anyone know how to solve this?
ok 
Could somebody tell me how I upload my bot to glitch?
alright removed and did the command, got this error:
^
TypeError: Cannot read property 'forEach' of undefined```
but heroku costs
no
its free but you get cons
like sleeps 1 hour per day
limited space
and so on
why does this not work for me
.addField("Server Name: `" + `${message.guild.name}` + "` \nServer Members " + `${message.users.size}` + "` Channels: `" + `${message.channels.size}` + "`")
@drowsy wedge first of all, you shouldnt read an entire folder like that
you should read it once when the bot starts for example
and save the list in a variable
@drowsy wedge make sure the folder has something in it, i had that prob before
ok, but why does it now show up still
ye, it does, and alright
then you get a random file name/path from the list you already have in memory
So I signed up for heroku what do I do next?
then you need to actually upload the file to discord, to send it
in that code you're just sending the random number, not the actual file
heroku can only handle really small bots btw
and don't even think of running music bots on it
@warm marsh why does this not work, it should, its in the code we where doing, the other embed parts work
.addField("Server Name: `" + `${message.guild.name}` + "` \nServer Members " + `${message.users.size}` + "` Channels: `" + `${message.channels.size}` + "`")
sendFile?
`${message.guild.name}` ``` is the same as just `message.guild.name`
no need to add interpolation for that
yes, i like it that way, that still would not stop it from working
so I should not use Heroku?
i use heroku for @heavy thistle
also
message.channels.size message.users.size
a) messages don't have channels
b) messages don't have users
same
how do i make it so it send the certain members from a server into another server then
nvm ignore that
you need to get the guild object
still no idea why it isnt showing in the embed
because that code throws
rich embed
ok i fixed code errors, why is it still not working 
it should work now
message.channel.createInvite({ maxAge: 0 }).then(invite => {
let bumpSend = new Discord.RichEmbed()
.setAuthor("New Bumped Server")
.addDescription("Server Name: `" + `${client.guild.name}` + "` \nServer Members " + `${client.users.size}` + "` Channels: `" + `${client.channels.size}` + "`")
.setColor("RANDOM")
.setFooter(footer)
client.channels.get('504747695794290700').send(bumpSend);
client.channels.get('504747695794290700').send(`${invite}`)
});
still not working..
you're not getting the server members and channels, you're getting ALL members and ALL channels of all servers combined lol
ffs
also, you dont have any guild specified
no
you're creating an invite, then passing the invite on, but you're not passing anything to define which guild you're working on
That doesnt matter
it works
hes not even sending the embed
The embed sends u stoopid people
it works, its just the embed field that doesnt show
if you're working on the same guild where you're getting the message from, then get information from the message
message.guild.name
message.guild.members.size
message.guild.channels.size
also, you dont need send(${invite})
just do send(invite) lol
can i set that to png instead of webp
and as Natan said, using + together with ${} defeats the whole purpose of ${} even existing
sure you can, it says there you can
i mean, it goes png for all, i want it to be gif if picture is animated and do not want to be webp
if the hash starts with a_ it's animated
i want to fast check it
probably the defaults
okay
5000 sounds like a too big number for Max messages in d.py imo
Also that's the default value
default should be 0, unless needed
i dont see why such high default values for bots that wont ever need to fetch past messages
in d.js default is 200 per channel whats still a bit high so i would go with what Tim said
does d.js have any way of handling user cache?
or eris?
afaik it still caches users as they come online, and doesnt uncache them
Not really, but there are several PRs/issues open for them
The only thing now is wait for v12 and see what's implemented
you can uncache them yourself tho

its not like thats not possible
you can clear/sweep them
Yeah just unsure what the rest of the lib behavior is without them cached
well for members atleast thats not a problem since i fetch them anyway if not there
so i clear members which didn't send a message in the last 30 min
same for emojis
there's a PR regarding disabling store, so I'm waiting for some of that
i c
whats the proper way to clear user cache?
Iterate, check whatever condition and delete from collection
there's no built in sweeper like the message store
@keen drift there is
Client#users is a UserStore what extend Store and Store has a sweep method
like messages

Yeah that could serve as a wrapper for removing
but I'm more specifically talking about the sweeper builtin for messages (set max sizes, duration, sweep interval)
so one could do client.users.sweep(options)?
Yeah iirc, that's only if you enable presenceupdate in your events, can't remember
no but you could use set interval to sweep offline users by matching their status in the sweep fn no?
Yes, that's the theory
yeah so an interval of 30-60 min or something
But for people with presence disabled, it might not be possible
if presence is disabled it doesnt show up in the user collection either?
nvm just ignore it
enable presence and then sweep it aswell afterwords
you don't need to worry about it if you didn't disable it manually
ez fix
any cheap vps recommend?
o yike
is it like $5 a month?
they have 3$ and 5$
hmmm
and more of course
where is galaxygate located?
h e c k
But I don't have my laptop
that's fun
So I can only use VS
huh
Virtual Studio
cuz i only have 100$ in my debit card XD
@quartz kindle ay, where is galaxygate located
should i change
o yikes, no looking glass
284 servers
yeah that's more than sufficient
the $3 should be enough
infact, this one would also work, and may be cheaper
Anybody know the code to get bots online?
im on google free tier, 600mb ram, and my bot runs nice on 400 servers
@earnest phoenix https://www.hetzner.com/cloud
Cloud servers starting at € 2.49. A little money gets you lots of cloud. Our flexible billing model and clever interface make it easy to use our cloud servers for all your IT needs.
that or galaxygate?
@drowsy yew you need to code a bot, or you just want it to be online and do nothing?
yes, 600mb ram
free teir?
Online
I can do the code tommo
about to use the 600mb to host a file directory for myself
I just need it online atm, so I can insert the first few commands @quartz kindle
The help command.
the one almost every bot has
But you don't even have a bot?
ok?
now i'm really confused on the request
But I'm trying to get it online
I need to get it online

GCP Free Tier expands our free program in two ways. $300 credit in a 12-month free trial and Always Free. Learn more.
how much does it cost?
And theres only like one software on this laptop
Virtual Studio
tim is it only for 12 months?
vscode is only an editor, fyi
if you make it in your laptop, it will only work while your laptop is on, until you transfer it to another machine
@quartz kindle is the 1GB of egress enough for you?
nope
So do you get charged extra
wait how much does it cost?
you get 12 months + 300 usd credit to get started
So you are just using the 300 usd credit?
but the micro F1 server is always free
GCP has a forever free tier ^
not the actual free compute tier
and im using the 300 credit for egress yes
What I'm mainly asking, is what code gets it online.
it costs me like 1$ a month in egress fees
im using skysilk $1 a month vps, its meh
@drowsy yew well you didn't even tell us what language, what framework you would be using, nor what steps you have taken to get it online
lul
do you even know how to use it? :^)
how much does it cost?
how much ram/hd is hetzner?
isn't hetzner still voice banned from discord
XD
But it's like $3 for 1vCPU and 2GB of ram
oh wow
20GB of ssd & 20TB traffic
im trying to find one close to me
I have my bot in Europe because latency on my bot doesn't matter
it still gets around 100ms ping
hmmm
they have US DC, but that's expensive
GOOD DEAL ==> Discover the VPS: less expensive than a server! 8 GB RAM - 40 GB SSD - 100 Mbps. Starting at $6.99/month
hetzner looks nice
4.49 a month
is there any like $3< cuz im broke XD
lmao
yeah not really
Back
Hosting a bot is bound to cost money
Im too lazy to do it now, so I'll do it when I get my computer back.. lol.
gimme discount
XD

l a m e
@earnest phoenix if you're tight on money, go for google gce
alright
im on it for almost a year and didnt spend a single cent
really?
and still have like 280 left from the free credit
isnt the vps you use like virtual machine?
yeah, its a vps
well, you can install windows on it, but its not recommended
ahh
vps are best using linux
after the year how much does it cost?
too much
lmao
so I'd ditch after that year
XD
just go for google, i havent had any problems with it so far
XD
yes
what does rythm use now
they changed?
yea
@drowsy yew again, to get the bot online you need to know a programming language and install a discord library
^^^^
alright
nice
If anyone really needs free hosting, they can share my low powered vps.
@earnest phoenix owo, link me that
it lags abit but its ok if you broke af
i'm not broke 
but I just need cheap vm to host a directory
which should consume like 10mb of ram at max
5$
i just need people to use my ref link cuz it gives me $25 and i can use that to pay for the host, but also gives the person 10$ im pretty sure
Hey Nut
What happens if my bot is offline when they're testing it???
deny
!
your bot gets rejected
lmao
why are you sending that?
lMaO
LmAo?!
sweet, 75 cents small vm
actually lost my ssh key, so I had to reimport into gpg then re export and convert

I am hosting my bot with heroku right now
once I get more bot users i'll make a switch
Wait could I host my bot with firebase?
i'd assume firebase has compute units
@wheat marten not with the free firebase version
glitch or maybe heroku
Glitch was blocked by discord
not anymore
??
that was only for a few days
Why
google gce is free
It costs
glitch works fine, maybe only that one or two IPs that are blocked, just depends on luck tbh
if its blocked just create a new one ¯_(ツ)_/¯
If you somehow get a blocked IP iirc they'll move the project to a different one if you ask them
phelp
Does anyone have an idea why a bot would send a message twice? It happens randomly on a server channel but never in a dm.
discord.js. Should I post it here or on pastebin?
pastebin.
I don't have permissions to edit the url https://discordbots.org/api/bots/493045795445276682/check?userId=?
the JSON
Because I'd want to change the "voted" from 1 to 0, after they've comfirmed voting, as a check
yeah you can't change stuff on our servers
How can I certify my bot?
Okay. Thanks.
Just to prepare. What are main requirements, any idea?
100 servers, 20 total upvotes, posting server count to API, post a widget for your bot somewhere visible (github is enough)
that's the basic minimal reqs
Requirements are being changed for the new Cert program but those were the previous requirements
does anyone know how to put an embed json thing in a config file
nvm i figured it out
Is there a way you can allow a webhook to use custom emojis?
I have somehow 428 servers
I didn't know that my bot is popular
@ivory cobalt not sure but u may just be able to use the emojis that is provided by discord. not sure but it is possible to allow emojis in the guild
Yeet, just made my working eval command!!!!!
If I will certify my bot, then My account will be certified automatically or how it works?
quick question
i am hacking a code
and
i need help[
i need something that can read this
because notepad cant do it
hacking code or skidding code?
hacking in my term of editing code
that isnt meant to be edited by the person who created it
How do I change a role's permission in a channel using Discord.js?
@shell blade
I tried using that but just got errors.
this is not mine but my friend made this command and he doesnt know why its not working https://hastebin.com/oqihihacam.js
and do you have more information on what is not working
that's the error?
yep
this is not the whole file, right
Can someone make me a custom bot fit for some needs
Don't think you should be soliciting bot services here
If you give me robux, it's a deal.
Ok @late hill
Oh
i would trade you a discord bot of your liking for some united states cash
n
what are the requeriments for certificate a bot? Cause I want to get ready for november
Heck
I need help
Im using JS
Im trying to make my bot reply when somebody says "Hello"
But it wont
After everything I tried
Your if statement is wrong
It's 2 =='s right?
to help making it clear: = means you assign a value to it, == means you compare a value to it in a non-strict manner (for example "0" with 0), === means you compare a value to it in a strict manner (both values must be the same type)
So what about it do I fix?


