#development

1 messages ยท Page 602 of 1

analog basin
#

I've got it all segmented into different js files

mossy vine
#

Just send the one that does your roll command

#

The code i mean

analog basin
#

ok it'll take a while to find all the pieces though

mossy vine
#

One command is in multiple files?

analog basin
#

it's kind of difficult to explain, but yeah it is

mossy vine
#

Okay, then just send the code that determines the roll result

analog basin
#

html: function(isEvent, data) {
return <div> <div style="float: left; width: 45%;"> Minimum Range:<br> <input id="min" class="round" type="text"><br> </div> <div style="padding-left: 5%; float: left; width: 50%;"> Maximum Range:<br> <input id="max" class="round" type="text"><br> </div> </div><br><br><br> <div style="padding-top: 8px;"> <div style="float: left; width: 35%;"> Store In:<br> <select id="storage" class="round"> ${data.variables[1]} </select> </div> <div id="varNameContainer" style="float: right; width: 60%;"> Variable Name:<br> <input id="varName" class="round" type="text"> </div> </div>
},

#

I think this is what you're after?

mossy vine
#

Can you format it in a codeblock?

analog basin
#

right

mossy vine
#

And uhh no

analog basin
#

hmm

#

go easy though because this is my first bot

#

I'm not a master coder

mossy vine
#

Wait if its a bot why are you writing html?

analog basin
#

truth be told I have a program where I put in the logic and it outputs the commands into code

#

thats why I dunno which files have the code in them

mossy vine
#

Discord bot maker?

analog basin
#

yeah pretty much

mossy vine
#

Yeah dont use that

analog basin
#

I ain't too good with java, I only know a teeny bot of html

#

it picks a number between one and [whatever the user wrote] and if it's not a number it outputs [NaN]. If the number equals [NaN] it instead sends an error mesasage. problem is I can't get it to detect [NaN] because NaN isn't the actual name of the output value apparently

#

@earnest phoenix easier said than done lol

#

dooes anyone know what NaN is called?

mossy vine
#

@analog basin NaN means Not a Number

analog basin
#

yeah I know

#

but when the number outputted equals NaN it's supposed to redirect to an error message

#

but it's not redirecting, meaning the output isnt equal to NaN

#

which I can only interpret as NaN not being the actual value for NaN

#

so does no one know?

analog basin
#

oh yeah also I can't do this manually because my CMD doesnt execute commands properly, thats the main reason I'm using an external program

#

if anyone knows what "NaN" or basically an unknown number value is refered to as an output that'd solve my problem

quartz kindle
#

in javascript, NaN is NaN

#

lol

analog basin
#

weird

quartz kindle
analog basin
#

that's not working for me

#

I guess the problem lies elsewhere

quartz kindle
#

NaN resolves to false in an if

#

you can also use the builting isNaN() function

analog basin
#

I'll try false then

quartz kindle
quartz kindle
#

what else can you chose in comparison type?

analog basin
#

I'll try equals exactly

quartz kindle
#

try exists

analog basin
#

oh ok I'll do that

#

no cigar

#

it rubs me the wrong way it says "Value to COMPARE to"

quartz kindle
#

you'd have to use exists after the math tho, because if you're checking before, it will be before a NaN is obtained

#

else you can use regex to rule out non-numbers

analog basin
#

its right after the generate random number

#

right before the send message

quartz kindle
#

try greater than 0

#

lmao

#

if greater than 0, continue action

analog basin
#

good Idea

#

thanks Tim! you did it ๐Ÿ˜„

#

I guess "Notarealnumberlol" is lower than 0 ๐Ÿ˜ƒ

quartz kindle
#

its neither lower not higher

#

xD

analog basin
#

oh! thanks! I'll remember that because I was actually wandering how it calculated that. I guess it TECHNICALLY isnt higher ๐Ÿ˜„

#

wait, does that mean it's not lower either? ๐Ÿค”

gleaming tulip
#

NaN is not a number

quartz kindle
#

its not a number, therefore its not bigger than 0, it is also not smaller than 0, it is also not equal to 0

analog basin
#

ok cool. this has all been VERY insightful

quartz kindle
#

welcome to javascript's weirdness

inner jewel
#

this isn't javascript

#

it's IEEE774

#

aka the standard that defines floating point numbers we use

quartz kindle
#

oh, alright

#

would a strong typed language still let you compare non numbers to numbers and do math that ends up in NaNs?

amber fractal
#

true and false work as numbers

#

js just do be like that

inner jewel
#

compare maybe, math yielding NaN yes

#

0/0 is NaN

analog basin
#

well a round of applause to tim for solving this predicament ๐Ÿ‘

quartz kindle
#

well, divide by 0 yes

#

but stuff like what javascript lets you, ie: "a" - 0

analog basin
#

a weird quirk I found is if you roll for like 999999999999999999999999999999999 etc you can roll a "infinite" which shouldn't be possible so I'm putting a limit on it lol

quartz kindle
#

oh yeah, infinity is also a thing

mossy vine
#

Huh

quartz kindle
#

infinity is just a math blackhole lul

gleaming tulip
#

-Infinity is also a thing

#

you get an Infinity result when dividing a number by zero

quartz kindle
#

Infinity + or * Infinity = Infinity
Infinity - or / Infinity = NaN

earnest phoenix
#

"javascript best lang"

inner jewel
#

again, that's IEEE774

#

you could write equivalent math in assembly and you'd get the same result

analog basin
#

this isn't a script thing, but can discord bots get nitro features? I assume not right? I've never seen a bot with a gif pfp.

earnest phoenix
#

no, they own some features by default though

analog basin
#

oh? which ones?

earnest phoenix
#

iirc cross server custom emojis

#

they had gif avatars for a short period but it quickly got removed because storage saving

analog basin
#

woah ok so I can have custom emojis for my bot? Given my bots a hot dog I don't have a use for that, but thats really cool to know.

#

wait whats the website with all the custom emojis on it?

#

wait no I'll just google it

#

hey real quick can a bot change an admins username?

#

I know it can't change the owners nickname.

#

or atleast I don't think it can

frail terrace
#

has to be lower in hierarchy

analog basin
#

so it can change admins, just not the owner, provided the Bot has top role?

frail terrace
#

think so

analog basin
#

cool I got someone to test it, youre right

latent oasis
#

NPM: yt-search
question: how to get a video URL?

quartz kindle
#

did you even read the npm page?

#

everything is explained there

echo pasture
#

who know a good vps to host a bot on it

#

i want a paid one

grim aspen
#

i use skysilk

echo pasture
#

is it paid ?

#

i mean is it good ?

grim aspen
#

also you can refer to this message for more vps

unique nimbus
#

I use Scaleway

#

its good

grim aspen
#

isn't that only europe though?

unique nimbus
#

I think so

echo pasture
#

but there is a small problem

#

how to host a bot on them i mean i should upload hes files or what

mossy vine
#

yes

#

exactly

#

or do what i did

#

set up a private git repo

#

and pull from it on your server

echo pasture
#

didnt understand is there a tutorial that you guys folllowed or what

#

i mean i should upload my files on AWS or it host from my pc ? ?

quartz kindle
#

google has a free vps for 12 months

#

i highly recommend it

#

but if you want to start off with a paid one, i head good stuff about galaxy gate, apparently many bots are using it

#

amazon has a free for 12 months one also

scarlet phoenix
#

I used Ovh's $3.50 vps way back when. It was good specs for the price. 2gb ram, 20gb storage, 1vcpu

echo pasture
#

@scarlet phoenix hey sorry for disturbing you

#

but

#

can you tell me how you hosted your bot on Ovh ? i mean what you did ?

#

did you followed a tutorial or what ? please tell me ;-;

quartz kindle
#

have you ever used linux?

#

do you know what is a terminal? ssh?

echo pasture
#

well nop idk what is linux

quartz kindle
#

an operating system

#

rival of windows and mac

#

what language and library are you using?

scarlet phoenix
#

Like tim said, the ovh vps is just a computer running linux. Its like mac os (except no desktop, terminal only) if you have used that.

#

So depending on what language you use, you will run it through the command line

#

If you do get an OVH vps they will give you an option of Operating system. Go with Ubuntu, it is just the easiest for a beginner

warm wigeon
#

Does anyone why my bot goes offline after X minutes? Im hosting it with Glitch, and I keep trying to keep it online but it won't work.

mossy vine
#

because you are using glitch

#

pro tip: dont use glitch

warm wigeon
#

it used to work 24/7 and its the only free solution...

#

But i edited some code and now it just goes offline

grim aspen
#

use uptime robot if i'm not mistakened

warm wigeon
#

i did

scarlet phoenix
#

My guess is that (and I have never used glitch) in order to keep this free model they spin you down if its not active.

#

My reccomendation, spend the <$5 a month for a vps

mossy vine
#

yes, thats why people use uptimerobot. to bypass that

grim aspen
#

it's not really recommended

amber fractal
#

Glitch to patch uptime robots when

grim aspen
#

you're better off with a vps iaf

warm wigeon
#

its better than heroku since glitch has an online ide

#

idk how to use a vps

scarlet phoenix
#

Could you just keep a separate thread going and doing something pointless? Or if they look for network activity, just keep sending random get requests or soemthing

warm wigeon
#

and im broke ๐Ÿ˜‰

scarlet phoenix
#

Well nows a great time to learn.

#

And $3.50 a month is too much?

warm wigeon
#

I can try to do that

#

Ill make my bot send a message and delete it every X minutes or so

#

No, it isnt but i dont have any money

naive ingot
#

Hey is a dbl.errors.Forbidden: Forbidden (status code: 403): {"error":"Forbidden"} due to an incorrect api key?

#

or can it point to other things

grim aspen
#

if i'm not mistakened

scarlet phoenix
#

Idk anything about you, so don't take this the wrong way, but I am guessing you are younger (like still in school) Could you just tell your parents, Hey I have this new hobby where I am coding, its super cool and I might want to make it a career later. I want to be able to do more but I need to put some code on the cloud. Maybe they would fund it ๐Ÿ˜›

grim aspen
#

it means that it wanted access to the url it requested

scarlet phoenix
#

Even if you are lying lol

grim aspen
#

but it's not allowed to

warm wigeon
#

my bot is kinda cringy so

scarlet phoenix
#

They don't have to know what it is

warm wigeon
#

and yeah um my parents are broke too

earnest phoenix
#

anyone understands discord.js web panel and API connected?

grim aspen
#

@naive ingot my message

#

above

inner jewel
#

a web panel is not something simple

earnest phoenix
#

i know

warm wigeon
#

is a vps like an online vm?

earnest phoenix
#

i got it to work

scarlet phoenix
#

yeah

earnest phoenix
#

but now i am getting errors when i run an command

grim aspen
#

it's a virtual private server

scarlet phoenix
#

Just a vm on some server in a datacenter somewhere

naive ingot
#

@grim aspen i get that but the only thing that could be the issue is the key right?

earnest phoenix
#

the logs are broken
it says that log.push is not valid
the push is not a thing

warm wigeon
#

so you can install vs code in it

scarlet phoenix
#

well, usually not

#

They are usually command line only

#

Or at least come that way

mossy vine
#

wELL ACTUALLY

scarlet phoenix
#

you could install a DE and WM and then remote in I guess

warm wigeon
#

Couldnt you install a desktop if you are on linux?

scarlet phoenix
#

But most people dont ususally

warm wigeon
#

Like mate

mossy vine
#

no

#

a vps doesnt let you do that

scarlet phoenix
#

Most unmanaged ones should

mossy vine
#

if you really need that IDE

scarlet phoenix
#

Then just VNC in or something

warm wigeon
#

sweet ig

scarlet phoenix
#

I mean for 3.50 a month (as an example) you be on like 2gb of ram and 1 core cpu

#

So a DE thats not specifically lightweight may be a stretch

#

Something like LXDE would work fine though

inner jewel
#

@mossy vine you can run a DE on a vps

mossy vine
#

a what

grim aspen
#

what i'm thinking is a server is trying to connect but it's not the right api key, i'd suggest regenerating the api key @naive ingot

inner jewel
#

desktop environment

mossy vine
#

oh

#

nvm

#

im dumb

inner jewel
#

but they usually have no gpus

#

so you'd have to do cpu rendering

#

which is slow and would eat cpu

mossy vine
#

can you manually set that up or is it something that is offered?

scarlet phoenix
#

obligatory just use vim or emacs

mossy vine
#

obligatory neovim > *

scarlet phoenix
#

Or just dont write the code on the vps

mossy vine
#

yes

#

best idea

inner jewel
#

you can set it up

#

it's just installing stuff

#

you could even use ssh x11 forwarding

naive ingot
#

@grim aspen ive tried regenerating multiple times now, still nothing

quartz kindle
#

why install a DE for coding tho? just code locally

#

imagine typing with 200 ping

grim aspen
#

@quartz kindle can you help me? you know better than i do

#

it's with this guy's error with dbl api

quartz kindle
#

show code

grim aspen
#

not me, but @naive ingot

naive ingot
#

its literally just the api code and my token

#
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))```
#

i got approved sometime last night

grim aspen
#

rip me because i know how to do the api in discord.js

naive ingot
#

@quartz kindle

analog basin
scarlet phoenix
#

Have you tried refreshing your token?

#

just joining in so

grim aspen
#

i made him do that

scarlet phoenix
#

Still 403?

#

rip

slender thistle
#

Send request manually

scarlet phoenix
#

^^^

grim aspen
#

let me look through the do-

analog basin
#

wait what's the issue?

grim aspen
#

or that

naive ingot
#

yeah still 403 with a new token

analog basin
#

if you're trying to host with a procfile you need to use a capital "Procfile"

grim aspen
#

wait

naive ingot
#

any docs on sending it manually

quartz kindle
#

you're using the dbl token right? not the discord token

naive ingot
#

yeah the dbl token

grim aspen
#

did you put your token in the dbl_token part?

naive ingot
#

yeah

quartz kindle
#

well, if all else fails, just post it manually using http

scarlet phoenix
#

time to take the magic out of the internet

#

Learn how http requests work

#

what a fun time

naive ingot
#

lol

slender thistle
#
header = {'Authorization': 'YOUR_DBL_TOKEN'}
async with aiohttp.ClientSession() as session:
    async with session.post(YOUR_URL_HERE, headers=headers) as r:
        # your stuff```
trim saddle
#
header = {'Authorization': 'YOUR_DBL_TOKEN'}
async with aiohttp.ClientSession() as session:
    async with session.post(YOUR_URL_HERE, headers=headers) as r:
        r = await r.json()
        # now your stuff :^)
naive ingot
#

okay ill give it a shot in a bit

#

awfully strange to get that 403 though

analog basin
#

I don't suppose theres a value of un empty value is there?

amber fractal
#

Wym

#

null?

#

Undefined?

#

Idk what you are asking mmLol

#

Wait unempty value

#

Ok Ill just stop talking

analog basin
#

my bad I don't have notifications on

#

I meant like can I use an empty space to trigger something

#

I found a way, but it's a little messy

#

have a passthrough for numbers, and straight after have a passtrough for text, each one will redirect to a branch, if it's not a number or text, then I guess that means it was left blank

#

I think so anyway ๐Ÿค”
in my head it makes sense

#

either that oh they put an image in the command hahaha

#

also @amber fractal whoops I meant an* haha

slender thistle
#

What lib

analog basin
#

lib?

slender thistle
#

Discord library you use

mossy vine
#

he uses discord bot maker

#

not a library

slender thistle
#

DBM is d.js iirc

mossy vine
#

but the generated code is trash

analog basin
#

I just selected a random library

#

the generated code is pretty bad,

#

but I barely ever look at it

#

I upload it to github and have heroku run it through a Procfile

#

but yeah I'm pretty ashamed that I have to get a program to do the writing for me haha

#

I'm also pretty sure this was just intended for surface level code tbh

quartz kindle
#

if discord bot maker gives you an empty string when you leave it blank, you can compare with ""

analog basin
#

ok thanks that makes this way easier

#

I was actually seeing errors with my route aswell

#

thanks again tim ๐Ÿ˜„

#

perculiar. it definately recognised it, just didn't do anything it was told

#

really weird. when it reads blank it just stops.

#

if got it set to read an error message but it doesn't, it just stops what it's doing ๐Ÿค”

#

well that's really annoying and somewhat frustrating, but it does register that there's nothing there.

quartz kindle
#

you can also use exists

#

since empty strings are falsy

analog basin
#

ok let me try that then

#

hmm. exists doesnt work either

quartz kindle
#

i dont know how discord bot maker creates the code structure, but in normal programming you would do something like

if(variable && variable > 0) {
    // continue
}```
#

if it exists AND is bigger than 0

#

this rules out empty strings, non-numbers and negative numbers

analog basin
#

it doesnt help that they cram it into one big block like this lol

#

ctrl F doesn't work either

quartz kindle
#

this is not actual code tho

gleaming tulip
#

you won't see anything there anyway

quartz kindle
#

its more like an instruction set to be converted into code by the engine

gleaming tulip
#

yep

analog basin
#

darn, I know there's a regular command generator but it adds as an action which wouldnt be an issue if my entire code wasn't built up off of "jump to X action"

#

well no other choice I guess

#

I have a question

#

if

    // continue
}```
wouldnt that mean just any positive number?
quartz kindle
#

yes, it eliminates negative numbers

gleaming tulip
#

and zero

quartz kindle
#

and 0 yes

analog basin
#

HMMMMMMMMMMMMMMMMMMMMMM

#

I got it

#

no that wouldnt work

#

I was gonna say "if it's not more than zero, and it's not less than 1"

#

but that would only elimenate numbers

#

WAIT

#

I got it for real this time

#

if it's less than 1 letter long

quartz kindle
#

thats also an option yes

analog basin
#

tempVars("amount").length

#

I feel 300 iq

quartz kindle
#

that pseudocode is horribly wrong but ok

#

lmao

analog basin
#

amount is a variable

#

if thats what that means

#

idk

quartz kindle
#

yes, but that makes tempVars a function

steel heath
#

Tim that's already a function in dbm

quartz kindle
#

oh

analog basin
#

oh ok cool I was worried

quartz kindle
#

well i never used dbm so xD

steel heath
#

there r 3 different types for variable storage thing of dbm

#

tempVars serverVars and globalVars

quartz kindle
#

@uneven laurel how do you want to define who goes into which team?

analog basin
#

my cmd legit won't let me install the discord.io node, even after clearing cache so I guess I have to use DBM

quartz kindle
#

just create two arrays and loop over each member, if current loop is even, add to one array, if its odd, add to second array

analog basin
#

I feel like someone here probably knows why my cmd won't work but I already put in like 20 hours of experience into DBM so no use switching away now

earnest phoenix
#

so i have api calls in my bot but they dont come in in order of code rather than the time from the api response

#

so what func would delay themessage.channel.send so they send in order

analog basin
#

how do I mount?

#

its still set to jack

gleaming tulip
#

you know you can just type cmd in the folder address bar

analog basin
#

?

gleaming tulip
analog basin
#

woah

#

how do I get it to stay?

#

mine resets to "Jack"

gleaming tulip
#

๐Ÿค”

#

mine stays

analog basin
#

which isnt even a default path so I've clearly done it at some point

quartz kindle
#

you can shift right click an empty area on your folder

#

and click open cmd here

gleaming tulip
#

yeah that works too

analog basin
#

open cmd here doesnt show up but the cmd in the search bar works

#

it ALWAYS boots up in Jack though

gleaming tulip
#

oh for it to open itself on the folder you want you must do it either Tim's or my way or cd into it

analog basin
#

yeah but then when I reboot its back to jack

gleaming tulip
#

that's what it's supposed to do

#

isn't it?

analog basin
#

well who's Jack?

gleaming tulip
#

hm

analog basin
#

how do I get it to default at current adress?

gleaming tulip
#

try going into that path yourself

analog basin
#

ok cool this'll probably help

#

also this may seem unrelated

#

but how do you make small code blocks?

#

mine extend to the end

gleaming tulip
#

`text`

quartz kindle
#

you mean embeds?

analog basin
#

I guess

gleaming tulip
analog basin
#

nahnahnah

quartz kindle
#

this?

earnest phoenix
#

this.this

analog basin
#

yeah

quartz kindle
#

what almeida said

analog basin
#

text?

#

oh wow

dull bobcat
#

So, I go to the 8th grade and we are having a programming class after the easter week. My teacher said he was expecting me to know what we are going to make and learn in the class, but when he showed me the code I got a littly confused since he use JavaScript and not NodeJS which is what I write my code in. Literally, he used a function called circle() and it wasn't defined, idrk how it workes with <script> </script> thing but do you guys know if there is a difference in nodejs and the scripts in the html files. He knows I wrote codes and sh!t so he also said that he thinks I'm good enough to helping him teach our class about this but the thing is I'm still in the basics. Also my seconds question that I couldn't find when I googled is about what we are going to make. So... My teacher said we will write a code in javascript and it's like 8 lines of code, and it draws(animates) the Swedens flag, like the yellow stripes are flying cross the screen and the blue rectangles are just wooshing in and created the Swedish flag, do you guys know any tutorial for something like this so I can practice? Thank you for taking your time to read this, and I hope I explained well enough. Sorry if I incorrectly spelled something. :) And please don't say "learn js" since that is just a silly and worthless answer since I provided information about me already trying to learn the very basics in JS and all I asked for was if you guys knew any kind of tutorial for such thing I provided above, because some toxic server have replied with that multiple times and being rude..

gleaming tulip
#

jesus

analog basin
#

all of my teachers have been useless at educating me on this

#

hey guys today well being doing coding
what language
no, coding

mossy vine
#

@dull bobcat sounds like p5.js, not sure tho

dull bobcat
#

p5.js?

#

no no its like, he is coding in a site

#

๐Ÿ˜‚

mossy vine
#

what

analog basin
#

in html you can have refferels to external files

quartz kindle
#

javascript can be used inside <script> tags in html

analog basin
#

a lot of people use css to store formatting

quartz kindle
#

a browser will have many build in javascript functions, such as for accessing the window, the dom, cookies, etc

#

including canvas

#

the same way node has many built in functions, such as require("fs") for accessing the filesystem

#

the browser doesnt need requiring, since its all included by default

analog basin
#

this is exactly what I was look for. thanks Almeida

dull bobcat
#

Well help?

quartz kindle
#

@dull bobcat i explained to you the basics of browser javascript, do you need help with something specific? like canvas or svg?

#

you can also do animations with css only

analog basin
#

woah the create output for empty sure is elusive

grim aspen
#

it detects what's put after the command

#

it found nothing

#

so it put it as undefined

quartz kindle
#

undefined should be compatible with "exists"

analog basin
#

I've got a code block that converts the text to a length number, and a second that detects if there's 1 or more letter, if there isn't it's supposed to trigger an error

dull bobcat
#

@quartz kindle No i can do animations with JS too, thats easy ๐Ÿ˜„ I just don't know how to create the object

quartz kindle
#

which object exactly?

analog basin
quartz kindle
#

a canvas? an svg? a div to manipulate with css?

analog basin
#

I might change input as a server variable so I can use this length block universally

#

lol can't believe how many hours I spent on an empty space error message... who's gonna be dumb enough to try enter a command without a parameter anyway?

dull bobcat
#

@quartz kindle Lets say i want a circle right, and there is a function called circle which creates a circle no shit ๐Ÿ˜‚ Lets say the circle functions have 3 params, the first two are height and width and then the diameter of the circle

circle(100, 100, 25)

And if to get this circle to anime i simple do this

let x = 100
let y = 100

function animate() {
    circle(x++, y++, 25)
}

animate()
quartz kindle
#

believe me, people are

analog basin
#

haha I actually hope someone does so that the can see what 4 hours labor can accomplish ๐Ÿ˜†

#

have you guys tried hosting with Heroku? it's so useful.

quartz kindle
#

@dull bobcat that still doesnt tell me what hes using. where does the circle function come from?

#

this is a canvas circle: js var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.beginPath(); ctx.arc(100, 75, 50, 0, 2 * Math.PI); ctx.stroke();

#

this is an svg circle js <svg height="100" width="100"> <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> Sorry, your browser does not support inline SVG. </svg>

analog basin
#

it's crazy to think that theres a website that does 100 percent free dedicated server hosting

quartz kindle
#

its not 100% free, it has limitations, bad performance, etc...

#

and its not a dedicated hosting, the word dedicated means something else in the hosting context

analog basin
#

oh my bad

dull bobcat
#

@quartz kindle Im telling you, i have noo fucking idea since this was exactly his code:

var x
var y
function update() {
    circle(100, 100, 25, "red")
    x += 1
    y += 1
}

Im confused, since where tf is circle defined and the update function is never called either how does this code woooork ๐Ÿ˜‚

quartz kindle
#

is he using any library?

analog basin
#

my only complaint is I wish I could change region, an aussie server'd be nice but beggars can't be choosers

dull bobcat
#

Idfk bro @quartz kindle he literally went into a site and showed me his project

#

๐Ÿ˜‚

grim aspen
#

what library are you using @dull bobcat

dull bobcat
#

Read the information i provieded ^

#

And then you might know that im not the one running the code :))

grim aspen
#

then who is

quartz kindle
#

he has to be using something, you have to ask him

#

circle() and animate() are not native functions

#

he either defined them, or is using a library

hard tendon
#

uh hi, using discord.js

#

code:

#

and I get an error:

#

Error: Cannot find module './Storage/coins.json'

#

any idea why is this happening?

quartz kindle
#

is this the only file where you require coins.json?

#

are you sure there is no coins.json in any other file?

hard tendon
#

yup this is the only one

#

I just started coding this

#

never required the package before

#

file*

vivid mortar
#

.json

quartz kindle
#

do you have a folder named Storage?

hard tendon
#

as u cna see in the SS yes I do

#

can*

quartz kindle
#

i dont see it in the ss lol

hard tendon
#

wait nvm u dont see it

#

but ye I do have it

#

u cna see there

#

can*

quartz kindle
#

is daily.js being called from another function that resides in Storage?

hard tendon
#

nah it aint the Storage folder as u can see contains .txt files only

#

and in this SS I dont have coins.json in the Storage file

#

but as I write the code in GitHub due to me hosting my bot

#

I do have it in there

agile edge
#

Need link of this server

idle basalt
#

dont use json as a database

#

also in the screenshots youre requiring coins.json from the same folder

quartz kindle
#

so in production you actually have coins.json in the Storage folder? but in your local setup you dont?

idle basalt
#

you probably want ../Storage/coins.json

quartz kindle
#

because the code you showed is not using the Storage folder, is looking for the json file in the current working folder

#

but your error says its looking for it inside the Storage folder

hard tendon
#

yeah the ss is a bit outdated like 10 mins cuz I re=wrote the code

#

nah @idle basalt got it I needed ../Storage./coins.json

idle basalt
#

thats what i just said

hard tendon
#

now it dont show me errors

#

ty ty

idle basalt
#

just saying, use a real database -- not a json file

hard tendon
#

like?

idle basalt
#

there are a million of them lol

hard tendon
#

whats the easiest one to handle

quartz kindle
#

sqlite is more than enough

idle basalt
#

probably something local

quartz kindle
#

but you need to learn a bit of sqlanguage

idle basalt
#

like keyv

hard tendon
#

btw tim ty for ur effort

quartz kindle
#

if you dont want to learn sql, there are many libraries that abstract it for you into something similar to JS maps

idle basalt
#

a lot of beginners use local storage dbs like lowdb, keyv (with no provider), enmap, quick.db, etc

#

theyre relatively simple

hard tendon
#

witch one do ya suggest for me

idle basalt
#

any of those

#

keyv is easy since theres a whole section of the official d.js guide on it

quartz kindle
#

quick.db is an abstraction layer for mysql iirc

#

enmap uses several databases, depending on which provider you chose

idle basalt
#

it only uses sqlite now

quartz kindle
#

ah ok

idle basalt
#

she updates it like every day reee

quartz kindle
#

she?

idle basalt
#

evie

quartz kindle
#

nice

analog basin
#

can someone join my server real quick and test out a command I wrote?

quartz kindle
#

"wrote"

analog basin
#

I'm admin and owner so how it works for me won't be the same as a standard member

quartz kindle
#

lmao

analog basin
#

ah I see

#

I guess it's more like built when you use a program, huh?

earnest phoenix
#

does anyone know a bot that interacts with selly.gg and you can write !order (order-id) and gives that person a rank?

quartz kindle
#

nope

analog basin
#

neither

earnest phoenix
#

Okay Good evening all

#

Im after a bit of help with regard to uploading my bot to the new bot section

#

i have tried adding my server description in markdown and html and im getting invalid server format

#

how do i fix this

quartz kindle
#

there is no server description, unless you're adding a server

#

in the "servers your bot is in" you should add the server IDs

analog basin
#

the command I need tested is
!callme aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
'!callme !callme michaeland then!callme michael` again,
I just need someone to join my test server real quick and copy/paste those in there
please DM me if you've got 30 seconds to spare

idle basalt
#

or make an alt and use it for testing

analog basin
#

yeah I guess that'd work if no one else will join

idle basalt
#

99.9% of people wont be willing to join random peoples servers to test bot features

#

you can make your own alt account and test it yourself

dusty cipher
#

@earnest phoenix try to warp ur elements with divs

analog basin
#

yeah I guess I just figured it'd be a lot easier to just ask someone to copy/paste the written commands

quartz kindle
#

@dusty cipher that has nothing to do with his problem lol. he said hes getting "invalid server format", which happens if you dont put server IDs

dusty cipher
#

soka

#

thanks timmy

analog basin
#

there's a leveling template for DBM? this sounds good

late hill
#

Can bots change their own avatar

analog basin
#

yes

#

no

#

they can change the server icon though

amber fractal
#

Yes

#

They can

analog basin
#

oh

amber fractal
#

@late hill in d.js?

late hill
#

Eris

amber fractal
#

Gimme a sec

analog basin
#

I thought the bot icon needed to be changed from the developer portal nvm

amber fractal
#

There may be another way

late hill
#

oh

idle basalt
#

eris ๐Ÿคข

zealous veldt
#

It's better at scale than Discord.js

amber fractal
quartz kindle
#

Is eris still better than djs master?

late hill
#

base64 data URI

#

So

#

I can't just put a link to an image

#

Right

#

..?

quartz kindle
#

Correct

late hill
#

Something I can use to convert?

#

๐Ÿ‘€

quartz kindle
#

Canvas for example

#

Or any other graphics lib

late hill
#

oh

#

But aren't they like

#

Resource intensive

quartz kindle
#

Nah

#

Not for something as simple as this

late hill
#

Alright

#

Thanks

quartz kindle
#

My bot generates images using canvas, up to 5000x5000 resolution

late hill
#

๐Ÿ‘€

quartz kindle
#

Takes less than a second on average

#

On googles 600mb ram vps

#

800x800 takes 50-70ms to generate

#

Including a shit ton of trig math

#

Canvas is fast af

late hill
#

๐Ÿ‘Œ

analog basin
#

which files do I need to update on github with DBM?

earnest phoenix
#

i dont think anyone here will help with dbm

analog basin
#

a couple of people here seemed to know a fair bit about it

calm token
#

Hi I have a little trouble with the ping command to display the latency, could someone give me help?

earnest phoenix
#

what is your lang and lib

calm token
#

Js

analog basin
#

it's a little embarrasing being the only person who uses dbm here, it feels like I'm being looked down upon in the same way a pc gamer looks down upon an xbox gamer

calm token
#

Discord.js

earnest phoenix
#

well yeah dbm is a piece of trash and spending money on it is like burning it

analog basin
#

haha I didn't pay for it

calm token
#

My bot responds: NaN ms

analog basin
#

show code

calm token
quartz kindle
#

put end time - start time in parenthesis

analog basin
#

ok this'll take a while to load for me cause I got garbage internet

quartz kindle
#

else you're doing "pong" + endtime first

idle basalt
#

js is not a smart boye with types

analog basin
#

oh and tim solves it just like that, he always solves everything in a second flat

#

it's impressive really

quartz kindle
#

lmao

idle basalt
#

well when you dont use dbm maybe youll learn something

#

99% of the questions asked here have 1 second solutions

analog basin
#

go away pretentious pc gamer

idle basalt
#

haha yes

calm token
#

Thank you very much it works!

quartz kindle
#

๐Ÿ‘

earnest phoenix
#

more than 60% of questions here can be solved with a google search but the askers iq is usually lower than the percentage of questions

idle basalt
#

lmao

#

i feel that

analog basin
#

I don't think that's accurate

idle basalt
#

its probably too small of a percentage

earnest phoenix
#

not to target a specific person forgot to mention

idle basalt
#

a lot of questions are literally just asking for something thats in the docs for their lib

#

"how do you delete a message"

analog basin
#

I'm sure you guys are all super genuises at birth but some of us are new here, and I think this is an excelent learning resource.

mossy vine
#

dbm
excellent learning resource
choose 1, take it or leave it

grim aspen
#

that's... not how it works

#

we are born first

#

then we learn

unique nimbus
#

Yes

#

I am literally retarded

#

however practise

analog basin
#

wow ok I thought I was an xbox gamer but clearly I'm just a mobile gamer

unique nimbus
#

learn

#

and you good

idle basalt
#

being a noob doesnt mean you cant google your questions or read the docs

mossy vine
#

mate stop bringing up your epic ๐Ÿ”ฅ ๐Ÿ’ฏ gamer stuff

hushed berry
#

help why is my iq offline

idle basalt
#

google it

unique nimbus
#

whats google?

#

I use duckduckgo

earnest phoenix
#

we were all beginners at once, however learning is not asking questions you can google or research yourself. there is quite a difference and using sarcasm to prove otherwise is a stupid contradiction

hushed berry
idle basalt
#

lmgtfy

analog basin
#

ok yall seem to think I'm retarded just cause I use a program to help with the scripting -__-\

idle basalt
#

nobody said that

grim aspen
#

?

#

no we don't

mossy vine
#

discord bot maker has a server anyways. why dont you ask your dbm related questions there instead of here, where almost noone uses it

analog basin
#

this is for development

#

what I'm doing here is development

mossy vine
#

again, i bet that <5% of people here use dbm. they have an official server, why not ask there?

#

someone will definitely be able to help you there

#

instead of everyone trying to piece together how the software works

analog basin
#

ok one of the questions I asked was specifically about DBM.

#

one of them, which I assumed might be common knowledge with non-beginners

earnest phoenix
#

i dont think dbm even counts as development

analog basin
#

AH. there it is

earnest phoenix
#

its like saying excel scripting is game deving

mossy vine
#

or that scratch is game development

#

its not

analog basin
#

am I not developing a bot

mossy vine
#

if you are making a game with scratch are you a game developer?

#

deep and serious philosophical questions right here

earnest phoenix
#

indie game dev

#

scratchโ„ข

quartz kindle
#

cmon guys

#

development includes anything that you "develop" regardless of tools

#

ie: image development in photoshop

gleaming tulip
#

the topic doesn't say that

analog basin
#

thank you tim, I'm glad someone agrees with me

#

guys help this interface is too hard

gleaming tulip
#

"Channel for chatting about (bot) development"

#

that's not a dbm thing

#

did you also know that dbm has support servers etc

analog basin
#

yeah

#

I'm in it

gleaming tulip
#

I see

analog basin
#

as you can see, I have been asking for support from there

#

If the question relates specifically about DBM I ask it there, If it's about general bot creation I use here

gleaming tulip
#

As far as I remember that is not a thing on DBM

#

unless you are using a cracked version of it

#

(talking about the screenshot you posted above)

mossy vine
#

is !=== valid javascript code?

gleaming tulip
#

no

#

!= and !==

mossy vine
#

hm

#

ok thanks

calm token
gleaming tulip
#

!= is the opposite of ==
!== is the opposite of ===

mossy vine
#

alright thats exactly what i need ,thanks

gleaming tulip
#

๐Ÿ‘

#

Hugo, are you sure you aren't running multiple instaces of your bot?

analog basin
#

I don't use the program because "javasript is too hard" I use it because it bridges the gaps in my knowledge, I still have to make commands, variables, and such, I can just do it in a format I can understand.

calm token
#

Yes I am on, the message when the person leaves is good but that of welcome No...

analog basin
#

that's not to say they're on the same difficulty though, DBM is designed to be user friendly

gleaming tulip
#

what do you need help with

analog basin
#

does anyone else here host with github?

calm token
#

sorry for my questions...

analog basin
#

is this in MS visual studio code?

calm token
#

Yes why?

analog basin
#

you're new here right?

calm token
#

Of course...

analog basin
#

MS visual studio will pick up on any basic errors after you've saved your file atleast once, so that'd be a good starting point

earnest phoenix
#

@calm token did you recheck your ids, code seems fine to me

analog basin
#

my guess is a syntax error

#

visual studio will pick up on those

gleaming tulip
#

Deacon, just ask your question

analog basin
#

all of my questions are answered

calm token
#

Yes I check, but it varies sometimes there are 4 or 10 welcome messages
And the software does not detect any errors

earnest phoenix
#

stop trying to sound smart you literally havent contributed a bit @analog basin

analog basin
#

@earnest phoenix stop thinking I'm disabled because I use DBM

earnest phoenix
#

why are you putting words in my mouth

#

@calm token ratelimits maybe?

analog basin
#

you literally just told me I was "trying to sound smart"

calm token
#

Ratelimits ?

earnest phoenix
#

its not saying you are disabled

gleaming tulip
#

hugo, what exactly is happening there

analog basin
#

no you're saying I'm clueless -__-\

unique nimbus
#

okay Deacon what was the original error

#

whats wrong

gleaming tulip
#

"all of his questions are answered" Peter

calm token
#

My bot announces the welcome message many times

unique nimbus
#

o

gleaming tulip
#

how are you running the bot

unique nimbus
#

Hugo check if your bot responds to bots

#

it might be responding to itself

analog basin
#

well the only error I have is I don't know which files to update on github but that's not really crucial

earnest phoenix
#

hugo ratelimits are basically rules that limit how many of actions can be done within a timespan, they are dynamic but the guideline is 5/5s for bots, meaning you are allowed to send 5 messages within 5 seconds

analog basin
#

I'll just update all of them

gleaming tulip
#

Deacon, what you really need to update is the data folder

#

if you updated mods, upload the actions folder as well

calm token
analog basin
#

if you have it running on a seperate server then be careful you don't run it from your pc aswell that can cause some confusion haha

gleaming tulip
#

Hugo, send you message event

analog basin
#

thanks @gleaming tulip

unique nimbus
#

Hugo it might be in a loop also

#

idfk

gleaming tulip
#

most likely is what is happening, I don't see a reason for it to be spamming welcome messages

unique nimbus
#

as whenever someone joins it just spams it because its in a loop

#

yes

gleaming tulip
#

Hugo, try running a normal command of yours

earnest phoenix
#

the code doesnt present a loop

gleaming tulip
#

see if it spams as well or just runs once

calm token
#

The code is higher in the conversation

earnest phoenix
#

its maybe subscribing to an event multiple times

gleaming tulip
#

yeah but that one you posted looks fine here

calm token
#

Okay wait

earnest phoenix
#

or you have multiple bot instances running

gleaming tulip
#

but why would it cry

earnest phoenix
#

no idea

analog basin
#

thats what I said

gleaming tulip
#

either it has multiple instances running, is responding to itself or is looping the event for some reason

earnest phoenix
#

ive seen people subscribe to an event within an event subscription making it add a handler more each time the parent event fires

calm token
#

Normal command work very well

gleaming tulip
#

oh yes

calm token
#

It's just the welcome message

gleaming tulip
#

Hugo, do you have the guildMemberAdd event inside another event?

#

screenshot your code around the guildMemberAdd event

calm token
gleaming tulip
#

higher up in the code

calm token
#

The guildMemberAdd is just one time throughout the program

latent willow
gleaming tulip
#

same for the guildMemberRemove

latent willow
#

move the guildmemberadd + guildmemberremove event above the message event

calm token
gleaming tulip
#

yeah

#

move the guildMemberAdd & Remove off the message event

#

else it will run them everytime a message is sent, that's why it is spamming

calm token
#

Where do I move it?

gleaming tulip
#

anywhere outside of the message event

#

the message event or any other event

calm token
gleaming tulip
#

no

latent willow
#

not like this

client.on('message', msg => {
  client.on('guildMemberAdd', member => {
  });
});

but like this

client.on('guildMemberAdd', member => {
  // your embed stuff
});

client.on('guildMemberRemove', member => {
  // your embed stuff
});

client.on('message', msg => {
  // your commands
});
calm token
#

sorry

gleaming tulip
#

what xavin said

analog basin
#

is there an invite button on the developer portal?

#

oop

#

found it

broken elm
#

So

#

How would I go about using the data from an api

#

I know how to send info to the api to get something back from it

calm token
#

I think I was wrong again

broken elm
#

But my problem is the fact that I donโ€™t know how I use the data I get back

earnest phoenix
#

whats your lang

broken elm
#

js

calm token
earnest phoenix
#

do you get a json response

broken elm
#

Yeah

latent willow
#

@calm token you need to send the embed like you did before ofc ^^

also i hope you didnt copy these 3 again in your message event

gleaming tulip
#

how are you getting the response from the api

earnest phoenix
broken elm
#

ah

#

I looked at that this morning and wasnโ€™t sure if it was it or not

#

Thanks

calm token
#

sorry I can not, I do not understand your explanations, I'm French I try to understand better what you say

gleaming tulip
#

you can keep your message event where it is Hugo

#

just remove the guildMemberAdd and guildMemberRemove events outside of the message event

#

otherwise they will be ran each time a message is sent

analog basin
#

I created a bot called Obedient Bot to help with my testing purposes and he won't execute a single command I give him. I'd be mad if it wasn't so ironic

gleaming tulip
#

did you turn it on / is it online

analog basin
#

yeah

gleaming tulip
#

check the bot log

#

unless you run the bot in cmd or something else besides dbm

#

does it error?

analog basin
#

nope

#

"Bot has started at Saturday, Apr 13, 2019, 4:09:36 AM
Bot is ready!"

calm token
gleaming tulip
#

run it in cmd

#

it usually throws more errors

analog basin
#

doesn't even say I've done anything lol

gleaming tulip
#

no Hugo

#

don't put events inside other events

#

just separate them, like if they were independent functions

analog basin
#

I don't know how to execute in cmd, last time no matter how many guides I looked up I couldn't get bots to execute with it

#

is it a possibility I bricked it when inviting it to my server?

calm token
#

i separate all the evenements

analog basin
#

when generating the link I didn't have any permissions ticked under the impression he'd just have default everything, in hindsight its a possibilty that it's just deprived of all rights

#

atleast it said something I guess

#

it's supposed to mimic what I say back but for some reason he just doesn't listen rip

#

what

#

someone hijacked my bot?

#

excuse me?

#

someone just jacked my server kicked everyone and is now in control of my bot.

latent willow
#

regen your token

and remove it from github

analog basin
#

yeah

#

weird.

#

oh yeah

#

it's probably someone in this server

latent willow
#

no -- it's people have scraper to go through github and find public available tokens and do shit with it (most likely that person is not even on his pc atm)

move your token in a config file and google for "how to gitignore a file" and dont upload that config file to github

analog basin
#

that bot didn't even have admin in hindsight

#

this is him

#

before he started messing with crap his name was "OHMEGA"

#

well anyway this "obedient bot" hasn't executed a single command I've told it

#

what a waste of 3 hours

grim aspen
#

someone stole the bot's token

#

regen it

analog basin
#

I think he's just a standard discord hack

#

er

modern sable
#

you have your bot's token on github

analog basin
#

that's true, will heroku be able to read my token if it's private though?

#

actually heroku has a slot for that

#

I'll just update all my github stuff real quick

earnest phoenix
#

you can say bye to security if you are using free hosting

grim aspen
#

put your github to private

analog basin
#

I don't think heroku will be able to make sense of my files if I have it on private, I'll replace the key with a fake

#

and then add an exception on heroku

#

worker: node bot.js
I need this for later don't mind me

gleaming tulip
#

the problem is not heroku

#

the problem is you posted your bot's token on github

analog basin
#

yeah I know

#

I'm adding a fake token on github

gleaming tulip
#

or just don't have a token at all

analog basin
#

?

gleaming tulip
#

or make a private repository

#

since they are free currently

analog basin
#

will heroku be able to read private repositories?

gleaming tulip
#

you'll need to give them permission to do so

analog basin
#

oh ok cool

#

that solves that then

gleaming tulip
#

you can just create the private repository

amber fractal
#

Or gitignore

gleaming tulip
#

create the heroku project, and then go to the Deploy tab and connect your github repository to it

analog basin
#

also this is gonna sound like a stupid thing to say but I only JUST found the delete repository button, how can I delete only one folder from the repository?

hushed berry
#

You should never even have configurable data in code

gleaming tulip
#

how did you push stuff to github

analog basin
#

how did I upload the files? I've never heard the term push so I dunno exactly what that means

gleaming tulip
#

yeah how did you upload the files

analog basin
#

created the repos and just drag/dropped everything except resources, and instead of node_modules I did xtend and also the actions folder from DBM then I added a Procfile for the worker node

#

dunno if that answers your question, hope it does

gleaming tulip
#

uh

analog basin
#

I'll take that as a no?

gleaming tulip
#

so you want to remove the node_modules folder

analog basin
#

yeah I uploaded the xtend folder instead of node_modules

gleaming tulip
#

you don't have to upload the node_modules folder

#

actually, you shouldn't update the node_modules folder

analog basin
#

do I upload the xtend though?

gleaming tulip
#

no clue what that is

analog basin
#

oh ok well your the expert

gleaming tulip
#

never seen that folder

#

what version of the program are you using

#

beta?

analog basin
#

I got my advice from a 40 minute unedited video when they do this and blare 3x speed anime intros and called it "nightcore" so I don't trust it

#

I'm using the web default

gleaming tulip
#

I mean dbm

analog basin
#

fresh account less than 3 days old

#

oh

#

not beta no

gleaming tulip
#

where did you get dbm from

analog basin
#

truthfully... igggames

gleaming tulip
#

so that's why I've never seen that folder

#

that's not a thing on the actual dbm

grim aspen
#

that's not the real discordbotmaker

#

or at least i don't think

analog basin
#

well I mean I'm making discord bots

#

I've looked at the video guides and their version looks the same

#

the xtend folder is one of the 100 and something folders in node_modules

gleaming tulip
#

Discord Bot Maker is paid Creeper

#

if that answers your question

#

so no it isn't

grim aspen
#

i know

analog basin
#

well I think this is a 6 month old build

grim aspen
#

so it's a pirated program then

gleaming tulip
#

yep

analog basin
#

it's past 1.4 I know that much is true

gleaming tulip
#

the only legit way of getting dbm is from steam

grim aspen
#

the real discord bot maker program is on steam for $9.99

#

application*

gleaming tulip
#

yeah

analog basin
#

It's not that I don't think it's worth it, I just can't afford it

grim aspen
#

i can understand that

gleaming tulip
#

(you sent that in here)

analog basin
#

yeah haha I photoshopped that

gleaming tulip
#

ah

analog basin
#

everyone was implying I was stupid and used this as some "cheaters way of making bots" or like that and how it's equivalent to "calling myself a game developer because I've been on scratch" so I sent that and said "GuYs I DoN'T KnOw whAt to ClIcK"

#

yeah mine looks pretty legit

#

brb

#

if my bots down for half the time does that mean it'll be declined?

#

I got it on heroku but it's been down constantly so I could improve it

#

first obedient bot wouldn't execute commands, then it started doing its own commands

#

so now

#

I've taken down every instance of it

#

and

#

it's still online

#

this might be the most disobedient bot of all time

grim aspen
#

did you reset the bot's token?

gleaming tulip
#

oh yeah the token got leaked

#

they might have dmed everybody

#

well, the bot is not here so

quartz kindle
#

it takes a while for discord to update a bot's status when it goes offline (to make sure its really offline)

#

and your bot has to be online when mods review it, else its declined

#

but there's no way of knowing when they're gonna review it

#

so if you want your bot approved, have it online as much as you can, and leave developing to either before you submit it, or after its approved

#

i only submitted my bot after developing it for like a month, to make sure it was stable enough and actually useful for people to use

versed pawn
#

Please approve my bot

grim aspen
earnest phoenix
#

in awaitMessageReaction can i put "time: 0" ?

drowsy wedge
#

honestly not sure if this goes in api or here but my bot randomly goes offline a good few minutes after launching, i host on my computer as of the moment, console says the bot is still online but in discord everywhere they appear offline. runs on 4gb ram and in 20 servers

earnest phoenix
#

the bot respond to command ?

#

hi

drowsy wedge
#

nope

#

also @earnest phoenix what language

#

and to add, my bot goes back online 5-30 min later

buoyant wagon
#

is there an error

drowsy wedge
#

uwu is it launching

quartz kindle
#

something is making it crash or become stuck in an infinite loop, or large delay

drowsy wedge
#

ill check it out

#

thanks

earnest phoenix
#

What is the best language to make applications with??

#

Im new so i dunno

zealous veldt
#

]]moreinfo

covert turtleBOT
#

If you want people to be able to assist you, please provide more information, such as what library and language you're using, the code in question and what you are trying to do and/or what is causing the error.

earnest phoenix
#

And only know badic html

idle basalt
#

pick a language
pick a lib

torpid fox
#

can it make coffee? (the bot)

earnest phoenix
#

C++?

idle basalt
#

sure

earnest phoenix
#

Is that a good one?

idle basalt
#

theres a lib for almost every language

#

use a language youre comfortable with

earnest phoenix
#

Im only comfy w/ html rn

idle basalt
#

in the end, theyre basically all the same

earnest phoenix
#

Ohh

#

Tnx

idle basalt
#

well html isnt a programming language but a markup language, so unfortunately you wont be able to make a discord bot from that

earnest phoenix
#

Ohh

#

So i need something like java?

idle basalt
#

yes

#

javascript, java, c++, python, etc

earnest phoenix
#

hard to learn?

idle basalt
#

javascript is probably the easiest

#

or python

earnest phoenix
#

i heard from a friend that python sucks

#

Isnt javascript a markup language to?