#development
1 messages ยท Page 447 of 1
yeeeeee
well, the entire bot is essentually a find/search command XD
xD
that's its entire use actually
i just have mine so it goes to the next page after the user post "!next" in chat
yes its way better
btw, does is emoji pagination slower in dms for anyone else?
my bot's pagination is much slower in dms than in servers
might be
template? 
at least i'm not a scumbag and removed the copyright
removes copyrights
true
.<
wow
so, how do i do clickable emojis? is it just get_reaction then compare the value to ๐(back) or ๐(next)
I guess I will ask again, is there a way to see if a user have voted for my bot?
.net library
yes. setup webhooks and add it to db/cache it somehow
its a bit more complicated than that @flint river
you need to set up a reaction collector to watch for reactions to that specific message
well, i guess you could just use the reaction event and check if the message id matches, but i've never tried that way
I am getting null by using GetVotersAsync
is that possible that my token is not authorized yet?
@earnest phoenix I dont know how to set up a webhook, but its not required as I have only 30~ votes a month
I am confused... to get APLI I should follow this:
AuthDiscordBotListApi DblApi = new AuthDiscordBotListApi(BOT_DISCORD_ID, YOUR_TOKEN);
I place there ID and Token from https://discordbots.org/api/docs#mybots (API key) but I am stil lgetting null from GetVotersAsync
Anyone here good with HTML/CSS and able to help me make a dropdown for my navbar I made?
I've had no success lol
client.on('ready', () => {
console.log('Turned on the Discord client.');
console.log('Running on guilds now...')
client.shard.broadcastEval('this.guilds.size').then(results => {
client.user.setActivity(`${results.reduce((prev, val) => prev + val, 0)} guilds | >info`, { type: 'WATCHING' })
});
})```
Displaying an incorrect number of guilds for my bot's status, what am I doing wrong?
not 100% sure since i havent used d.js in a while, but im pretty sure you just do guilds.size in broadcasteval
That worked, thanks.
๐ np
@earnest phoenix also you could use fetchClientValues instead of broadacsteval if you are just getting guilds across all shards
almost identical to what you are doing but probably faster:
manager.fetchClientValues('guilds.size')
.then(results => console.log(`${results.reduce((prev, val) => prev + val, 0)} total guilds`))
.catch(console.error);
it start to work. I guess it took time to authorize.
but for some reason it giving me all votes, no matter how many days I enter, 0-100 it will be always all votes. Does it suppose to be like that?
Anyone know how to make it so that only people with certain roles can interact with my bot?
Im currently getting spammed with this
no clue why or how
But all my modules keep restarting
yeahhh one breaks all
Theyre all different processed
what library do you use
But either way im gettin the error ive never had before and i havent touched it
discord.js
version?
juan second
12?
thats mean an unexpected disconnection event happened between your bot and discord
Most likely your internet disconnected or something else
just restart the bot
cuz sometimes it goes apeshit
after it happens
at least in my experiences
11.3.2
yeah after the 11.3.1 update I think they sorta removed the handler for ws disconnection errors
idk what happened but it seems to be the case
I use v12 soooo it doesn't affect me too much
but yeah
yes I do understand v12 is a beta version
but it works fine for me
It'll work alright if your internet does not disconnect and reconnect randomly
which causes the underlying socket to be broken
and then throwing an error
yeah if you're gonna do like a serious bot, it needs something like an OVH VPS or AWS or Azure
that kinda thing
its still restarting over and over
that has a 99.99% uptime
@slim heart can you double check your internet connection? and especially to discord
I mean its connecting in general but then disconnecting
but yeah
should i ping the api or discordapp?
๐๐ป
uhhh
hmm
idk why it would be disconnecting
if your internet is receiving replies from Discord
isnt it discordapp.com:443
then idk why it isnt working
or something like that
443 is https
and it auto redirs
to https
no the api
its https when you click on i--
yeah it does
443 is the HTTPS port
not just an API port
which port is the api?
its not on any port
no its another one ik it is
its right here
it says 404 not found in it because you didnt give it a function
but it gives it in the API form
could it be on part of the fact that i have 10 different js files running all logging in?
yees
so what i'd advise you to do is make a main js that connects to discord once
and the other js files
can use that connection
Can i get like a quick guide on how to do that
I need spoonfeed cuz i needa solve fast ๐
process.on('uncaughtException', function(err) {
console.log(require('util').inspect(err, { depth: null }));
});
btw
thats an library issue so most of the time its complicated to fix
Try adding that to the end of your bot code and try running your bot again to show the error
@stiff juniper do u have a guide by chance
At least it will be more specific about the error
@slim heart uhhh I use something called Klasa
which is a framework
on top of Discord.js
it was a pretty shit ride
trying to set it up
nvrm
mkay then
yeahh
unless you wanna make your own thing
use something like Klasa
do NOT use djs commando
it's just a big meme in the discord.js community
seriously just dont
you don't need a js minifier lul
wh
yuicompressor is a js minifer
ohh right
how does klasa work?

Klasa is a bot framework
Like express is a web framework for nodejs
wh
im confused
so klasa is a framework for discord.js
yeah
it gives you essential shit
like command handling
event handling
that kinda stuff
you can add commands
and events
and other shit
TO IT
by using js files in folders
and extending the right class
Oh im tryna figure out a way to call all 10 of the js files and use them and then after it log in for each of them
Klasa has a handler for that
the command handler
here i'll dm you my bot's gitlab repo
which has Klasa set up
to help you
commands
are like
you do prefix!command args
and the bot does something
for example
prefix!ping
the bot says
"last heartbeat: 89ms"
boom
like that
yeah the modules arent commands
they all do something different
usually not command based
likeeeeeeeeee
Filters are split into messagefilter editedmessagefilter and nicknamefilter
well imo modules react to events and commands are a subset of the message events
ยฏ_(ใ)_/ยฏ
interesting system there
but to do shit like the invite filter
you'd just make an event
to handle the messageCreate
event
to see if the message contains any invites
events/messageCreate.js
// blah blah
doStuff();
is there any way i could just set up a single js file that runs all the other files with one login
Yeah
huuue
thats how you require a file
and then it runs?
so blah would now be the usecommands.js thing
whatever it is
whatever's in module.exports
will become the value of the var
module.exports..?
remember to add ./ infront of the file name to make sure it doesn't start looking in your node_modules
^
Okay so how do i add that?
module.exports = function (name) {
return "hi " + name;
}```
^
so when you import it
if you console log the value of varName("h")
it'll say
"hi h"
it literally imports everything from that file
//ALLL my code not some ALL?
}```
like how requiring discord.js is requiring djs (./node_modules/discord.js/src/index.js)
and you call it with
const hello = require('./hello.js'); //assuming you called it hello.js
bot.on('ready', function () {
console.log(hello('world'));
});
i just add all my code in there nothing else?
yeah
Im trying to make sure oof
everything after the } there
wont be in the export
put a semicolon after the } too
in this case afaik you need it
maybe maybe not
idfk
do i have to add like function(bot)?
yeah
I suggest you reading this: https://anidiotsguide.gitbooks.io/discord-js-bot-guide/coding-guides/a-basic-command-handler.html
anything else
Yeh
so
const Discord = require('discord.js');
const bot = new Discord.Client();
const auth = require('./auth.json')
const 1 = require(./usecommands.js)
//etc ^
1(bot);
// etc ^
bot.login(auth.token)```
btw its not that good naming your variables as numbers only
Does anyone know a discordbot that can detect a mention and redirect the user to the correct channel to use it in? something like a mention manager?
i dont know of a preexisting one
but it's really easy to do it yourself
in a basic way
discordbot.on("messagesend", message => {
// pseudocode btw sooo
if message.channel.id is this id {
message.channel.send(`<@${messageauthorid}>, use <#${otherchannelid>`);
}
});
i did psuedocode
just to give you an idea
on what to do with it
ah thanks, i already have a concept as well, just wanted to know if one existed so that I would use that instead of creating a whole new bot
i see
I'm getting a lot of ECONNRESET that started after the major outage today
hey guys i need help with:
i using in my help command :
group.commands.map(cmd => cmd.name).join(', ')
but idk how to change the name of command like command_name ๐
is in the black bar
@earnest phoenix yo, did you want to be able to make a welcome image?
Wdym
this here is just triggering me and I have no clue what to do
Line 13
async def on_ready():
^
SyntaxError: invalid syntax
I have the right version, the code's perfect, and I have no typos
what is going on?
What's your python version
3.6.5
oh ok
k
here
bot = commands.Bot(command_prefix='turt!')
@bot.event
async def on_ready():
print ('I am ready to be Insane')
just wish anyone knew
That should work
anyone can't help me? ๐
?
yeah
hey guys i need help with:
i using in my help command :
group.commands.map(cmd => cmd.name).join(', ')
but idk how to change the name of command like command_name ๐
its in black bar

one question
idk
can you make discord bots on mac?
you just need microsoft visual code and node.js (mac version)
:))) xD
i want to ask mod but i do not want to tag him :/
if you don't know watch this tutorial, i'll will help you
Hello everybody, I am no longer on discord meaning I will no longer take any questions. I apologize for any inconveniences.
i has make a bot dude, i just need help with my question
still not working
watch the tutorial i sended you
ahhh @ivory osprey dude as you know i has see all of this, thats not i mean i want to see
`import dbl
import discord
from discord.ext import commands
import aiohttp
import asyncio
import logging
class DiscordBotsOrgAPI:
"""Handles interactions with the discordbots.org API"""
def __init__(self, bot):
self.bot = bot
self.token = 'dbl_token' # set this to your DBL token
self.dblpy = dbl.Client(self.bot, self.token)
self.bot.loop.create_task(self.update_stats())
async def update_stats(self):
"""This function runs every 30 minutes to automatically update your server count"""
while True:
logger.info('attempting to post server count')
try:
await self.dblpy.post_server_count()
logger.info('posted server count ({})'.format(len(self.bot.guilds)))
except Exception as e:
logger.exception('Failed to post server count\n{}: {}'.format(type(e).__name__, e))
await asyncio.sleep(1800)
def setup(bot):
global logger
logger = logging.getLogger('bot')
bot.add_cog(DiscordBotsOrgAPI(bot))`
does this example work
why do i get Expected Content-Type header to be one of set(['application/json']).
because Content-Type isn't set to application/json
you really shouldnt be doing this yourself if you dont even grasp that
i know some of this kinda thing cuz i've made web apis before
soo
also
did you
did you really
gimme a raw POST thing
like
POST discordapp.com
...etc
headers: {
'Content-Type': 'application/json'
} that rite?
@earnest phoenix Yes
like the header thung
i >ctrl z'ed 20 times then saves went to sleep and im back now
lol
leme just remake that shet
controlezed?
Replace the token
And basically yeah, unless you declared client instead of bot in main file
i will try it later when i got the time to
as me dont feel like doing anythign
bot.req("POST", "https://discordapp.com/api/v6/users/@me/channels", {
headers: {
'Content-Type': 'application/json'
},
'recipient_id': user.id
}.then(body => {
let parsed = JSON.parse(body);
console.log(body);```
was similar
@stiff juniper
bot is set tooooo
discord.Client()?
Oh
well this is hard hold up
you're overcomplicating this honestly
this is all you need in djs to make your bot say "pong" when someone says "ping"
to get the proper results
you'll have to connect to the Discord websocket
and all that shit
and its just
reeeee
to send a message to a user???
nope
to like
get events
and to like
be decent
right now, you can't just wait until Discord sends the client an event via websockets
the way you're doing it
it's just not worth it man
Your typing skill sure is kinda bad :p
this is the second time I see someone using raw discord api
the first time was some guy from dbots saying he is programming for over 30 years and he doesn't need a lib 
@ruby dust do you know what happened to him
nope
he's probably just using some shitty lib now like discord.io
libs make stuff so much easier
he acts like a fucking smartass, thinking that we're all noobs here
^
thats what i hated the most
he treated me like an ass
when i was just trying to help him
ะฟ
me too thanks
(talking about the newest case of POSTing to the API cuz "i dont need no lib" btw)
I'm talking about the first guy from dbots, he was saying something about looping (I don't remember much about it) and a bug that doesn't let it preview images on discord, which he then contacted discord and said they fixed it for him
how i can create a web dashboard for my bot?
you make it xd
there's a lot of stuff that goes into that
the basic idea behind a web dashboard is that you need to have some kind of communication between your bot (either the bot itself or just the database) and your website/server
we can't necessarily guide you on how to implement that but there are plenty of articles online about it
yeah
some tutorials to create a music bot?
which language/lib?
discordjs?
yea
https://anidiotsguide_old.gitbooks.io/discord-js-bot-guide/content/coding-guides/coding-a-music-bot.html
thats old u know. also thats paid
i see.. other one?
he has 3 other examples to chose from in there
if you dont want to pay
he also mentions is not as easy as you would think, and that everyone and their grandmother want to make music bots, which is kinda the point i wanted to make here
any1 to help?
post question
^
How do you add your own bot to a server?
Help with your personal bot is not customer service dude
You use the OAuth link
I mean, if you don't know the basic principles of Discord Bots, don't think of uploading here
Do you know how to get the OAuth link? @earnest phoenix
thats kinda rude mets
asks for help
mets tells you to basically fuck off
ya
I didn't tell him to fuck off
it was a hoist before
ok so i made my OAuth link
then use it
You put it into your browser
Any servers you have admin in will allow you to send it there
your link is wrong
Ok, go to your bot's panel
Where you set the name, icon and stuff
And scroll down to OAuth generator
And click the button
Not entirely true. You can have Manage Server which allows inviting bots.
Well it kinda makes sense. People who manage the server manages which bots are in it.
Eh
I dont think adding bots should be its own permission
He... he didn't even make it a bot user
but I think some new permissions need to happen
there needs to be a good balance between ease of use and customizability
anyway thats off-topic
@earnest phoenix so have you created a bot user or did you only make an application?
I'm making the bot user rn
BOOM
FINALLY
i finally made my first bot ๐
ok thx for your help
Why is bot offline 24/7
Because it may be updating or experiencing a glitch.
Either your bot is crashing. Or you simply made an application and didn't program it.
thanks
Where is the box to fill in the detailed description?
Is it the website URL, etc?
The black bar is a text box.
It is like that because the detailed description supports html.
Why do bots have to be approved?
What will the bot have so it will not make the bot be approved?
In order to prevent bots that don't function properly, break the Discord TOS, and some other stuff.
Tbh idk. probs a few days
the mods are only human
it seemed to have taken roughly a day to get mine approved (i submitted it few days ago). I can imagine this varies greatly.
watcha mean?
like it could also take a week or longer. Depending on how many bots are getting submitted, how busy the people approving them, etc
yea but the mods are fast + a lot of offline bots
people still don't understand, how many times have I told this... there are more web mods now than before, so it now takes no longer than 2 days now
that too
anywhere from 1 minute to 1 month
We need a visual queue so people stop asking
that's information we're currently not interested in making public
Even the amount of bots that will be reviewed before one's bot?
Maybe because if the line doesn't move, people don't say "The mods are lazy"
Do the Discord bots have to be in the Bot list for it to work?
They have to be in the bot list to be in this server
Why is my bot always offline?
if it hasn't been approved then it won't be in this server yet.
It doesn't work in my other server too.
Did you check to make sure itโs running?
How will I make sure it's running?
You have to run it
Like
If you're the developer you need to know how to start up your bot.
@earnest phoenix Have you made any program for your bot using a library like Discord.js, JDA, etc.?
Nope.
From what I can tell, youโve only made an application on Discordโs site.
So, youโve made the user, but theyโre a hollow shell as far as weโre concerned. That will quickly be denied by the mods.
I gtg soon, but do you have any programming experience in any language?
No, I'm making my first bot.
building a bot has the same logic as building a game - by knowing a programming language
So where do I go to program the bot?
you don't go programming a bot yet, you go learn a programming language of your choice by looking up some online courses
For free?
Ok.
codecadamy is free
go here for starters https://www.sololearn.com
or sololearn
Does it work on mobile too or do I have to get my pc on.
you may need your pc
kk.
actually you do need your pc
i'll go on solo learn.
google play has a sololearn app
idk anyone who would program on a mobile device 
but when i learn enough already, can someone show me the link on where you program the bot?
guy go on youtube
why
type in, how to create a discord bot
theres like 9-year old ppl there
bingo
ok
who cares
when you know how to program, you won't need any help like that cause you'll be experienced enough
go on sololearn first to learn the basic of basics, and then look at how people make their first projects on youtube
if u are just learning programming pls dont make a discord bot right off the bat
like I did

mistakes were made
๐

thats not
๐คฆ
thats not a programming language
offtopic
thats a language you speak
don't question anymore, choose a language you seem to like the most and learn it on sololearn
okay
programming language ๐
you really should not try to make a discord bot right now if you dont know about programming languages and programming in general 
what lesson should i start with?
wdym
There are several lessons they are offering
Learn how to do a Hello World program
Then learn about types (this depends on the language you learn). Then learn some logic statements. โIf this then do thisโ stuff.
Or go on steam and purchase Discord Bot Maker for $10. A few on here use it
A try catch should prevent a script to exit right? if something inside that try catch crashes
Depends. If you specify all exceptions then yes. If you specify a certain exception it will only catch that.
Well for some reason the discord ban list doesn't follow the rules of that try catch xd
I catch all exceptions, and still it exits if their service goes down, (which is quite frequent)
try {
const {
Blacklist
} = require('discordblacklist');
const token = AuthDetails.blacklisttoken;
const blacklist = new Blacklist({
token, update: true
});
blacklist.update();
bot.on("guildMemberAdd", async member => {
try {
settings = require("./Storage/settings.json");
}
catch (e) {
//no settings yet
settings = {};
console.log(e)
}
if (!settings.hasOwnProperty(member.guild.id)) return;
if (!settings[member.guild.id].hasOwnProperty("autoban")) return;
if (settings[member.guild.id]["autoban"] != "on") return;
if (blacklist.lookup(member.id)) {
member.createDM().then(m => m.send("Your user-id was found on the public banlist, if you think this is a mistake, contact the owner of this bot or contact the owners of this module: https://bans.discordlist.net/")).then(member.ban(7).then(() => console.log(`Banned ${member.displayName}`)).catch(console.error))
}
else {
console.log("user is allowed to join")
}
WelcomeMessage(member)
});
}
catch (e) {
console.log(e)
}
yep
try{
//do stuff
}
catch(Exception e){
server.panic();
server.crash();
}
If you request a resource from any service check if the response code is 200.
I'm not gonna tell you what to do, but there are a lot of articles about discordlist.net as a whole being one of the worst sites the internet has seen with the least security possible
Else handle the code accordingly
I just let java throw exceptions so I can catch them
Any other service that could check if a player has done bad stuff?
I mean dbans is pretty popular, but you need to choose the one you trust
I have a system of my own
I just use all of them 
I used Dbans just for the sake of quickly adding it, and I have an internal system too but I would love to check a new member that has never been in one of the guilds my bot is in
I made a command that takes IDs and checks them
idk, I just personally don't trust sites that log raw personal and possibly sensitive data, including ips, without any sort of encryption, and which is so fkin easy to ddos or hack into @granite hedge
doesn't matter if the user is in the server
@sullen path but you need something to compare it with xd, will try the ksoft.si thing
I'm currently using both dbans and ksoft
I created my own system because every others seems to be either very vulnurable or sometimes they ban users without a reason
making them look bad
๐ค
also, as a good practice, don't make any sort of commands that bans globally banned users
or hackbans
why is that bad? Keeping scum and bad players out of any server
because it's not for you to decide who to have banned from a commuity that you don't own/manage/moderate
I only ban if banned users join. Any existing users are ignored.
on a public bot?
um, yes?
remind me to don't touch your bot ever again
if you remove its ban perms, it just displays an alert
and without toggling it? even better
๐ค should I make a toggle?
just remove the banning part on that end completely
before someone thinks of your bot as "another raid bot"
Mine is a toggle too, but I am removing it now
What programming language should I use for a beginner? [Finally know what a programming language is! :D]
Javascript I would assume
people say python is a good choice for building simple AI programs
or Python
Python is probably a bit easier to learn, but I think JavaScript has more docs and guides
python is easier in a way that it doesn't have {} and ; type of things
so you can fully focus on the program's logic
Alright.
a good IDE will fill those kinda things in for you though (e.g typing in { will put the other } automatically)
Don't use NotePad++
^
First rule
Does anyone already made a Java bot?
I'll try Phyton 3 Tutorial
go with python3 if there is one
Ye.
@blazing gorge why?
2 is outdated
I am having trouble making one @sullen path
there are thousands of Java bots
Second rule: don't dev on a mobile device
why are you skipping courses? that's what you are doing instead of learning them
And my computer is slow so it doesn't work with java that well so that's why I asked that cause I need someone to help me make my bot
then don't use java
Java is quite resource heavy
Lol true
no wonder why mc is laggy
well not for the very simple things but if you expand, like sue maven it's heavy
no wonder why my server crashes after 5 days of uptime
java is like a big hole

Discord Bot Tutorial w/ Ben ๐Discord Permissions - https://discordapi.com/permissions.html ๐pom.xml - https://hastebin.com/esabocuduj.xml ๐JDA Docs - https:/...
...
ew maven
xd
Ew Java xd
Lol haven't use it in a while
๐คฆ
yep don't start with java please
Lol ok
learn java first or use a different programming language
you will probably rather jump of a bridge then finish it as a beginner language
Java
is a hell
Rip
Cool
if you count html as a programming language that was my first otherwise it was javascript
how to download linux onto a Acer Chromebook
a flash drive
i literally don't know what the hell i'm doing...
get one
best buy? Lol
idk
this is getting off topic
?
i cant find the off topic channel

the fewer part of the bot devs
i'm good at nothing...
?
i don't even know how to get one question right!
What website r u on @earnest phoenix๐
sololearn,
K
and you should be too, not shitposting here
i'm thinking on going to a website to 1-year olds.
ok
@earnest phoenix did you click on take a shortcut button?
Lol
yeah, sololearn won't let you pass unless you know everything what you were suppose to learn on first step
so if you don't know basics it won't let you take the shortcut
you have to click here
and actually learn, instead of taking quick shortcuts and not learning anything
What topic should i choose?
topic?
What's the first step @ruby dust
of what
to you or what? and what did I say?
U said "yeah, sololearn won't let you pass unless you know everything what you were suppose to learn on first step"
that wasn't directed at you
hmm
they didn't learn anything and want to pass that
Ok
how do i makea new json file witf filesystem?
as a developer, i'd say start with the uttermost basics
with
what language
js
no idea
yes, but you'd only say that as a developer, someone who didn't touch a programming language yet will still want to learn everything fast
I'm on the website now what @ruby dust
great, now the question, why are you even there?
that website is for those that want to learn the very basics of the programming language they want to learn
so choose a language and learn it
I guess
Cause why not lol ๐
if(message.author.bot) return;
if(message.content.indexOf(config.prefix) !== 0) return;
const args = message.content.slice(config.prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
try {
let comamnds = require(`./commands/${command}.js`);
comamnds.run(client, message, args);
} catch (e) {
console.log(e.stack)
} finally {
console.log(command)
}
});```
Client is defined
can help me?
are you sure it doesn't say client isn't defined?
do you know what "defined" means?
@devout raven
gj discord


html isn't a progr ok good luck
I'm trying to learn as much as possible.
Then I'll get into programs.
is it possible to buy nitro for my bot?
just a question xD
tag me if you want to reply
no you cant
discord already provides free nitro-emotes for bots for free
If you want your bot to have an animated avatar, too bad
shit its not approved yet
xD
not even possible to gift nitro
yeahh i wish you could gift nitro
also "good" is very broad
and can mean anything on a positive level
there's a suggestion open for that
what suggestion?
someone wanna help me update a old code bot to update stuff? I can pay if everything works clean asf again
gifting nitro
oh that
ye
ye
and they don't add it?
suggesting doesn't instantly mean adding it
I think they want to fix the 70% uptime first
also, I'd love to continue this conversation but it kinda gets off topic here
What could programming language should I use to make a Discord Bot?
any
If you know any languages at all, pick one of them (Preferably the one you are best in if you want to make a good bot) otherwise just pick any which has an API wrapper for Discord and learn that language
If you don't know any, people usually tend to start with Python or Javascript as those are the most beginner friendly langs
Both languages have very high quality libs available
Should I choose Phyton or JavaScript?
I prefer Python myself but it's up to you
What's the difference between Phyton & JavaScript?
Use google for good comparisons
They both work in different ways, but Python forces you to use a particularly unusual style of writing
While JS uses the more conventional brackets
It's best to use sites like codecademy to introduce yourselves to both languages so you can see which one you prefer
Python relies too much on indentations
Personally I like that
I like node.js more, Python looked hard for me.
In my personal words.
Hm.
Ugh, just choosing one of them is so hard for me.
Phyton looks waaaayyyy simpler.
So, is this too much data for RethinkDB to handle?
await r.table('giveaways').insert({
id: msg.id,
channel: msg.channel.id,
startedAt: startedAt,
startedDate: startedDate,
setTime: setTime,
endsAt: endsAt,
startedBy: msg.author,
prize: prize,
winnerCount: winnerCount,
channel: channel.id,
});
I keep hitting an error with that, dunno how.
Uh, wha..? I don't see how that could happen..
never run into this issue either
This is the full code if it helps:
let startedAt = new Date().getTime();
let setTime = convert(time).ms();
let endsAt = new Date().getTime() + convert(time).ms();
let winnerCount = parseInt(winners);
await r.table('giveaways').insert({
id: msg.id,
channel: msg.channel.id,
startedAt: startedAt,
setTime: setTime,
endsAt: endsAt,
startedBy: msg.author,
prize: prize,
winnerCount: winnerCount,
channel: channel.id,
});
๐
^
oh 
I included it since I wanted the users mention
should I just add the ID and .get it later?
just include the id
alright
no point in storing it as a mention, they're constant bytes

toString mentions
oh
woo ok, storing the ID fixed it
hey, how do i create a json file in js? i want to make it so that if the file doesent exist, create it
then the other stuff
create it like any other file ๐คท
yea, but make the bot create it if it doesent already exist in a chosen folder, using filesystem
If it doesn't exist, create it.
I'm not sure how to do that with JS but you can steal someone's code from stackoverflow
well thats what im asking
i have tried some code from https://www.w3schools.com but it doesent work
const reactions = msg.reactions.filter(r => r.emoji.name === '๐').first();
const users = reactions.users.filter(u => u.bot !== true);
What am I doing wrong here?
Print out reactions and paste it here @sick cloud
Can someone send me the link where I can program my bot?
Is it Visual Studio Code?
yes
Alright.
This?
yup
Can you use it for mobile too?
No, it's a Windows/Mac/Linux program.
You can't really code on a mobile you know lmao
Chromebook?
That should work considering its Linux.
Chromebooks can't run most Linux apps
and Chromebooks don't run Linux, they run ChromeOS
ChromeOS is based on/a modified version of linux right?
You can try to install linux on a chromebook ๐คท
I mean, you can install anything on a chromebook if you're willing to
linux is probally the best to put on a chromebook though
It's kind of the only OS you can install on a chromebook
Its very possible to install windows on a chromebook, you probally just need one with a larger ssd then the ones ive used
so it turns into "explorerbook"?
totally didn't drive everyone off-topic
question: im getting
discord.errors.HTTPException: BAD REQUEST (status code: 400)
which apparently means im trying to post something/ connect to something with something that doesnt exist
but i cant figure out what im doing wrong
error 404, existence not found



)