#development

1 messages · Page 550 of 1

inner jewel
#

if the db server isn't listening on that port you can't connect to it

amber fractal
#

Its default...

#

var conn = r.connect({db: 'storage'}) thats where the error originates from

inner jewel
#

because. the. database. isn't. running.

mental solstice
#

is rethinkdb hosted by the website? or you download it?

amber fractal
#

That doesnt help me at all...

#

Thats exactly what it says in the docs

mental solstice
#

The server is probably an EXE that you have to run

inner jewel
#

if you didn't run the rethinkdb executable, it won't work

topaz fjord
#

Connecting to the database doesn't mean the DB is running

amber fractal
#

It is listening...

inner jewel
#

did you ctrl + c that?

amber fractal
#

?

inner jewel
#

or are you starting the bot from another ssh window

amber fractal
#

neither?

inner jewel
#

then how are you running the bot

#

because running that command will "lock" that ssh window

amber fractal
#

its using forever...

inner jewel
#

what

bright spear
#

forever is something like pm2 iirc

inner jewel
#

i'm pretty sure you're killing the rethink process

#

that's the only way what you're getting can happen

#

if you do something like

#
rethinkdb
<hit ctrl c>
run bot.js```
#

it won't work

amber fractal
#

The bot just stays running, do I need to keep this running too?

inner jewel
#

yes

bright spear
#

both processes need to be running at the same time

amber fractal
#

How would I do that?

#

if it locks my window

inner jewel
#

run it as an eg system service

bright spear
#

or just open two windows?

inner jewel
#

using whatever your system has, like systemd

amber fractal
#

Im on a chromebook

#

Lol

inner jewel
#

opening two windows will kill the db when you close them

bright spear
#

wait

#

are you running a bot on a chromebook

amber fractal
#

No tf?

#

its on my bps

bright spear
#

oh ok

amber fractal
#

vps

inner jewel
#

good way: use systemd to run the database
average way: tmux/screen
horrible way: nohup

amber fractal
#

Is there a different db where I wont have to do this?

inner jewel
#

any embedded database

bright spear
#

or you can use something like google's db things

#

where they host it

amber fractal
#

Trying not to pay

#

Would PouchDB work?

bright spear
#

its free

amber fractal
#

O

bright spear
amber fractal
#

Good thing Im poor

#

oh wait

#

thats bad

mental solstice
#

lol

zealous veldt
#

don't use firebase/firestore

#

it's bad

#

trust me

#

its not very fast and it's a pain sometimes

#

you're better off setting up a db on your vps

amber fractal
#

I've tried 3 different options Im just too dumb to understand them...

zealous veldt
#

learn

amber fractal
#

I couldnt get a db setup on any of them even with copy pasted code :/

#

Literally the easy ones are always bad lol

blazing star
#

use mongodb

amber fractal
#

Tried that I had no idea what I was doing after an hour of trying to set it up...

zealous veldt
#

rethink

#

the key is to ignore part of the docs in installation

amber fractal
#

I already tried rethink

#

thats where all the above errors came from

zealous veldt
#

you will killing rethink from the looks of it

amber fractal
#

I cant keep it open

#

so i cant use it

zealous veldt
#

yes you can

#

you start it as a service

#

ffs

amber fractal
#

People act like people on here know what everything is

#

Idk what that means

zealous veldt
#

ok

#

so

#

do you have an ssh window open?

amber fractal
#

yes ill need to re get rethink

zealous veldt
#

you deleted it?

amber fractal
#

I have limited storage on my vps

zealous veldt
amber fractal
#

Im not keeping things I dont use

zealous veldt
#

rethink is tiny

amber fractal
#

Still

zealous veldt
#

k reinstall it

amber fractal
#

I got what I had before

zealous veldt
#

ok

#

sec

#

run sudo service rethinkdb start

#

see if that works

amber fractal
#

No output

#

Is that good?

zealous veldt
#

yeah

keen drift
#

Alright ladies

zealous veldt
#

Hi fishy

#

@amber fractal try to make your bot connect to the db

amber fractal
#

Same error

zealous veldt
#

go to your <server ip>:8080

#

in a browser

#

see if the rethink panel shows

amber fractal
#

Its taking too long to connect... it will give me the error it did last time

zealous veldt
keen drift
#

Wew

#

Lsof -i

#

Your friend

zealous veldt
#

lol

amber fractal
#

Already did that

#

I cant find this init.d folder

zealous veldt
#

its in /etc/

#

make sure you have the slash at the beginning

amber fractal
#

Im here, but rethinkdb isnt a folder

zealous veldt
#

run rethink

#

once

#

how you were before

amber fractal
#

Still no

#

I did rethinkdb

#

The rethinkdb_data file was created in my bot folder.

#

Got it

#

does this have to be named a certain thing?

#

My conf file

#

instance1.conf

#

lsof -i :8080 yields a result now

#

Still cant connect to it in browser

#

Now I have a new error

#

Unhandled rejection ReqlDriverError: First argument to run must be an open connection. /root/petbot/petbot/index.js:45:6 my line 45 doenst have a .run

#

Nvm its an old error

earnest phoenix
#

How can i get the user adding the reaction?

bot.on('messageReactionAdd', reaction => {
    let sRole = reaction.message.guild.roles.find(`name`, 'Scambaiting');
    
    if (reaction.message.id == "530616168310898709") {
        if (reaction.emoji == "😃") {
            
        }
    }
})```
#

I want to get the member adding the reaction so I can add the role

amber fractal
#

Fishy could help mmLol

earnest phoenix
#

don't emojis fuck code up

amber fractal
#

Doesnt mess with mine

earnest phoenix
#

huh mk

amber fractal
#

Well

#

It offsets text of that line

#

But thats just a visual glitch

earnest phoenix
#

yeah um were not talking about that lmao

quartz kindle
#

should be .on("messageReactionAdd", (reaction,user) => { ... })

marsh harbor
#

Anybody have any experience with typeforms API?

#

I tried it earlier and I got 401 unauthorized with correct tokens and everything so I was like -_-

zealous veldt
#

Did you 🇷 🇹 🇫 🇲

earnest phoenix
#

any opinions on mongodb over mysql

keen drift
#

they are not the same

#

not really comparable

earnest phoenix
#

i know

#

i’m talking about resource wise

keen drift
#

Resource wise?

earnest phoenix
#

meaning machine resources to run

#

i know they aren’t the same but it seems to be less resource heavy

sick cloud
#

mongo is for bigger projects

#

it has schemas and all

frosty delta
#

Does anybody know how to delete the bot's msg after a few seconds?(python)

keen drift
#

mongo has no schemas

#

i'd say mongo uses more resources

frosty delta
#

I tried await bot.delete_message(ctx.message) but it did'nt freakin work :|

sick cloud
#

it has something like them @keen drift afaij

#

afaik

keen drift
#

nah mongo is nosql

sick cloud
#

@frosty delta read the dpy docs

keen drift
#

no schema, but many npm pkgs do have schemas

#

which I have no idea why

#

¯_(ツ)_/¯

frosty delta
#

Ok;_; lol

keen drift
#

but mongo caches most recently used data in RAM

sick cloud
#

mongoose has schemas

keen drift
#

yes mongoose does

zealous veldt
#

monmoose

earnest phoenix
#
any opinions on mongodb over mysql```
never used mongo but mysql is bad, don't use it as a database for a public bot
keen drift
#

What's so bad about it?

zealous veldt
#

Anyone know any good code editing apps for Android? Preferably free. (Ping me)

blazing star
#

yeah, vim

zealous veldt
#

lul vim on mobile

raven torrent
#

Android Studio

#

@zealous veldt

zealous veldt
#

No

raven torrent
#

Yea

#

It's good

#

I personally like it

sturdy delta
#

can anyone help me

#

i am trying to use quick.db

coral trellis
#

Don't ping moderators

queen sentinel
#

did he delete the ping

#

wtf

coral trellis
#

Yes

sturdy delta
#

sorry

coral trellis
#

We aren't support, We moderate the server, Second you can wait for someone to help you

sturdy delta
#

ohh

#

i thought moderators were really good at coding thats why they mods

#

for a coding server

heady zinc
#

but this is not a coding server

queen sentinel
#

@sturdy delta not a coding server but okay

sturdy delta
#

...

#

its kinda like a coding server

#

people on here would know how to code because they are using discord.js

coral trellis
#

"Discord Bot List"

#

"BOT LIST"

heady zinc
#

not everyone here uses d.js

sturdy delta
#

most people

heady zinc
#

well except djs is the most beginner-friendly lib so most of the people using it have only minimal knowledge

modern sable
#

if you want help with a lib i'd suggest visiting the lib's support server

#

D.js has one iirc

blazing star
#

yeah they do

smoky spire
#

He already asked in it

blazing star
#

oh

rocky dagger
blazing star
#

okay

rocky dagger
#

the code sucks

#

and the token

blazing star
#

why did you post that

#

the first line smh

earnest phoenix
#

@sturdy delta You should ask in plexi wesmart its who made quick.db anyways

sturdy delta
#

whats plexi

blazing star
#

plexi dev is a meme, they dont even deserve to be verified (false verification™)

sturdy delta
#

@earnest phoenix

earnest phoenix
#

The sexy people who made quick.db

blazing star
#

ew quick.db

#

you can ask there

earnest phoenix
lament meteor
#

what db does quickdb uses?

earnest phoenix
#

better-sqlite3 iirc

blazing star
#

files probably

#

if you think about it all databases use some sort of file type to store data

lament meteor
#

sqlite3

dull idol
#

why my DBL page didn't change the background color?

#
  <style>

 background: #473C8B

  </style>```
pale marsh
#

That's not how css works

azure lodge
#

hi! Which is the best language for the API?

#

nvm

daring wolf
#

In this group i will give loco life or not

#

This grouo give me loco life or not

agile igloo
#

Hello

young jungle
#

hey

#

can anyone help me get a python bot to react to a message with 💖 ?

slender thistle
#

0.16 or rewrite?

burnt dune
#

سلام

#

کسی ایرانی هم داریم؟

young jungle
#

rewrite

slender thistle
#

<Message>.add_reaction(emoji_here)

#

Where <Message> is an instance of Message

young jungle
#

what do I put in the emoji_here bit

#

If I just copy/paste the emote it throws an error and says Unknown Emoji

slender thistle
#

What are you putting there?

young jungle
#

I tried

":sparkling_heart:"
"💖"
"U+1F496"
and
"❤️"
slender thistle
#

Works fine for me

young jungle
#

ok, well thanks anyway i'll try it again

patent reef
#

Is is possible to import rewrite and async at the same time?

ruby dust
#

such an odd question from someone that manages an entire bot list

earnest phoenix
#

is discord bot maker any good?

slender thistle
#

Two folders, different names, different versions

patent reef
#

@ruby dust im also an ex python dev so im just wondering

true moss
#

guys i currently use json files to store my user and guild data, however i want to host my bot on heroku, and heroku doesn't let me write data to the json files, so i wanted to ask what online db's would you recommend that are simple to use and have good documentation?

ruby dust
#

dbs or not, it will not solve your problem if you are hosting on heroku

true moss
#

why not?

ruby dust
#

because on every bot restart, it reverts the changes to what is on your github, and no you can't just never restart it because heroku restarts their dynos at least every 24 hours

quartz kindle
#

you can write to github lul

#

but his idea is to use a remote db

#

you can try google's cloud datastore

#

or firebase

true moss
#

i tried to use firebase but i cant find good documentation that explains it, do you have any resources that are good?

quartz kindle
#

nope, havent used it myself either

#

Heroku Postgres has a free tier limited to 10k individual rows of data.

bright meadow
#

How can I check if my bot has a list of permissions? I tried to check from textchannel > permission overrides by member but how do I check from role

quartz kindle
true moss
#

nope

#

ill check it

#

out

#

and do you guys know any cheap vps? like within 5$ or less per month

quartz kindle
#

galaxygate starts at 3$ (1gb ram)
hetzner starts at 2.5 euro (2gb ram) (does not support music/voice)
google has a free forever tier (600mb ram) but charges for traffic above 1gb/mo (discord uses much more than that)
amazon has a 12 month free trial (1gb ram)

true moss
#

i might try the amazon one 🤣

high tinsel
#

What is this:

(node:97) UnhandledPromiseRejectionWarning: Error: Something took too long to do.

    at timeout.client.setTimeout (/rbd/pnpm-volume/e8e383e6-afaa-4af5-bba9-64630e9be140/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/ClientManager.js:40:57)

    at Timeout.setTimeout [as _onTimeout] (/rbd/pnpm-volume/e8e383e6-afaa-4af5-bba9-64630e9be140/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/Client.js:433:7)

    at ontimeout (timers.js:498:11)

    at tryOnTimeout (timers.js:323:5)

    at Timer.listOnTimeout (timers.js:290:5)

(node:97) 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: 7)

(node:97) [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.```
And why does it prevent my bot from showing online on discord, even though the server is running?
quartz kindle
#

scaleway starts at 1.99 euro (1gb ram) but runs on atom cpus (about half performance of standard xeon cores)

#

well, something took too long

#

unfortunately you cant pin point the reason from that error only, you will need to debug your code

#

you can start by catching promises

#

ex: .send().then().catch(console.error)

#

or try { await .send() } catch(e) { console.log(e) }

earnest phoenix
unborn nova
#

guys

earnest phoenix
#

Hello guys!

#

Emoji remove code?

unborn nova
#

I'm doing something wrong. the application crashes without error

#
       if(cmd === `${Prefix}serverinfo`){
           console.log(`ServerInfo Command Used By ${message.author.username} (${message.author.id}) At ${message.guild.name} (${message.guild.id})`)

           const name = message.guild.name;
           const icon = message.guild.iconURL;
           const memberCount = message.guild.memberCount;

           const ownerID = message.guild.ownerID;
           const region = message.guild.region;
           const createdAt = message.guild.createdAt.toDateString();

           const vchannels = message.guild.channel.filter(c => c.type === "text");
           const tchannels = message.guild.channels.filter(c => c.type === "voice");

           const guildEmbed = new Discord.RichEmbed()
               .setTitle("Information About " + name)
               .setThumbnail(icon)
               .setFooter(`Requested By ${message.author.username}`, message.author.icon)
               .setColor(`#2196F3`)
               .addField("Owner", `<@${ownerID}>`, true)
               .addField("Server Region", `${region}`, true)

               .addField("Created At", `${createdAt}`, true)
               .addField("Member Count", `${memberCount}`, true)

               .addField("V-Channels", `${vchannels}`, true)
               .addField("T-Channels", `${tchannels}`, true)

               .addField("Role Names", `${message.guild.roles.array()}`);
           message.channel.send(guildEmbed);
       }
#

I'm trying to filter the channel list, but it's not happening.

quartz kindle
#

you have guild.channel and guild.channels

earnest phoenix
#

Hey Tim

unborn nova
#

...

#

wheres my glasses

earnest phoenix
#

What emoji remove code?

bright spear
#

@earnest phoenix always say what lib and version

earnest phoenix
#

Djs

#

11.4.2

quartz kindle
#

pls remove emoji kthx

bright spear
#

And you want to delete an emoji from a server?

quartz kindle
#

someone should make a lib for lolcode

earnest phoenix
#

Message.react

#

Add

#

Remove???

bright spear
#

Iirc it's message.reactions.get('id').users.remove('userID')

#

Might be different in 11 tho so sec

quartz kindle
#

get().remove() i think

bright spear
#

Oh yup

earnest phoenix
#

Not understand

#

Full code

quartz kindle
#

when you use .react() your message gets a new reaction

#

so you have to check message.reactions() to see all reactions in the message

#

and remove the one you want

#

you can also filter them

earnest phoenix
#

message.react("✅");

unborn nova
#

copying doesn't always work. try to learn.

earnest phoenix
#

Remove?

quartz kindle
#

sigh...

bright spear
quartz kindle
#

should be something like message.reactions.filter(r => r.emoji === "✅").remove()

#

sorry for spoonfeed but i just want to move on

earnest phoenix
#

Th tim.

unborn nova
#

can I use this to delete something other than ✅?
message.reactions.filter(r => (!r.emoji === "✅")).remove()

slim heart
#

Isn’t .filter returning an array of the other emojis?

#

So you have to do a for or forEach loop on it no? afaik

#

@unborn nova

unborn nova
#

hmmm

slim heart
#

Yea

#

It does

unborn nova
#

this new feature I learned. I guess my English isn't good enough either.

quartz kindle
#

replace .filter with .find

#

i think

slim heart
#

So do something like

message.reactions.filter(r => (!r.emoji === "✅")).forEach(e=> e.remove())

#

Rights ? :p

unborn nova
#

Thanks for the explanation

quartz kindle
#

yeah you're right

unborn nova
#

sure you are right :p

quartz kindle
#

message.reactions.find(r => r.emoji === "✅").remove() should work

#

.find returns the first value found

slim heart
#

Yea

#

So if he wanted to remove everything that wouldn’t work

unborn nova
#

thx guys

quartz kindle
#

wasnt there a method to remove all instances of a specific reaction?

slim heart
#

Oh yea

#

But he wants to remove all but one

#

So no

quartz kindle
#

oh he wants to remove all except the one his bot reacted?

slim heart
#

Yea

#

Hence the any use of .filter

quartz kindle
#

i just found out there is also .deleteAll()

languid dragon
#

just reverse the test statement

quartz kindle
#

so you can also do .filter().deleteAll()

#

nvm, that only works for messages

slim heart
#

Is that actually discord?

#

Oh

quartz kindle
#

reactions dont have a delete method

slim heart
#

Yea

languid dragon
#

i think the best way to remove all reactions would be to use the method that removes all reactions, then add the one reaction you want to keep afterwards

slim heart
#

.removeAll() GWqlabsFeelsEvilMan

#

Idk what his intentions are

#

So if he wants the users reaction to stay etc.

quartz kindle
#

but i swear i remember seeing a reaction delete method that cleared all instances of a single reaction from a message

#

was that in v12?

quartz kindle
#

v12 doesnt even have a reaction remove method lol

languid dragon
#

you might be able to filter the collection in master and then try using the removeAll method

quartz kindle
#

oh its in reactionstore now

languid dragon
#

yeah, it's a lot more modular~ in a way

#

object orientated *

slim heart
#

But removing all will remove every single emoji

quartz kindle
#

but the docs should at least link the correct datastores

#

like, the v12 docs dont link them anywhere

slim heart
#

They should make it so an option like .removeAll({options: {
except: emoji
}
})

#

Something like that

languid dragon
#

it would easily be ratelimited though

#

clear all removes ALL
you can remove sets but i dont think the API supports it (at least the bot API)

slim heart
#

Well on discord iirc they removeAll just removes them all separately on their own end tho?

#

They might’ve changed that cuz I’ve heard that a while ago

languid dragon
#

no if they had a removeAll function it wouldn't remove them all seperately

#

that would essentially just be rate limiting themselves gotem ecksdee

slim heart
#

It was how they used to do it lol

#

ReactionArr = []

#

Lol

#

But I mean couldn’t they just wipe the whole thing and redefine it as the single one the user said except for

languid dragon
#

but why

quartz kindle
#

a lib developer should never offer functions that make multiple api calls internally, except if absolutely needed

languid dragon
#

when you could just clear all and add a new reaction

slim heart
#

I’m not saying the actual lib I’m saying actual discord

#

Adds it into the discord api

#

Not lib side

#

But then again that’d probably be dumb

#

such a rare usage

quartz kindle
#

discord's api should have a transactions endpoint

#

where one could send a list of operations to do sequentially

#

in one api call

#

lmao

languid dragon
#

ok but

quartz kindle
#

that could be dangerous to them as well tho

slim heart
#

Then people can abuse from the inside so

languid dragon
#

that would be the same as being ratelimited bot-side

#

someone could easily abuse it and if it was a thing they'd probably put real heavy ratelimits on it

#

i highly doubt they would do anything like that since you could do it yourself via a burst of 3/4 actions

#

just with a long wait :^)

slim heart
#

Or maybe they can focus on the application showing spam messages deleted in a spam fashion and it shows up on the app screen even tho it doesn’t exist

languid dragon
#

what

quartz kindle
#

what

slim heart
#

If you spam like a command that a bot deleted the initial message of right? It keeps deleting until both people are rate-limited and eventually everything is figured out and deleted but sometimes on the visual app screen it just stays there I guess because it was too fast, the message doesn’t even exist and you can’t even hit the delete button

#

You can only get rid of it by refreshing the application

quartz kindle
#

never happened to me lmao

#

but i dont abuse bots either

slim heart
#

Yea

quartz kindle
#

although i did abuse the api once

#

on april fools

#

i made my bot react on all messages in a specific sever, as an april fools event

slim heart
#

But people come to me like all the time saying “tHe BoT dIdNt DeLeTe ThE cUrSe” and I have to explain that it’s a discord problem and half the time they don’t believe me

#

(╯°□°)╯︵ ┻━┻

quartz kindle
#

because the reactions rate limit is kinda low, people started spamming in order to watch the bot struggle to keep reacting

slim heart
#

You got your reactions and shit but what a surprise it is that people invite a bot to censor their message and then spam curse words to see if it “works” 🙄

quartz kindle
#

lmao

lethal sun
#

I am trying to make my bot delete an emoji, but I am getting this error:
TypeError: Cannot read property 'guild' of undefined

#

This is my code:

    		.then(emoji => console.log("Removed the [" + args[1] + "] emoji from the guild.")) 
    		.catch(console.error);```
smoky spire
#

msg isn't defined

lethal sun
#

but it is

smoky spire
#

not according to the error

languid dragon
#

send full code

#

clearly not enough context

lethal sun
#
const Discord = require("discord.js");

module.exports.run = async (client, msg, args) => {
	
	if(!args[0]) return msg.channel.send("Please use the correct format:\n!emoji create [link] [name] |\n!emoji create [name] - can only be used if an attachment is sent with the command |\n!emoji remove [name]");

	if (args[0] === "create") {	
		if (!msg.attachment) {
			if (!args[0].startsWith("https")) return msg.channel.send("Please provide a valid link.");
			
    		msg.guild.createEmoji(args[1], args[2]) 
  	  		.then(emoji => console.log("Created new emoji with name [" + emoji.name + "] in the guild.")) 
  	  		.catch(console.error);
  	  } else {
    		msg.guild.createEmoji(msg.attachment[0].url, args[2]) 
  	  		.then(emoji => console.log("Created new emoji with name [" + emoji.name + "] in the guild.")) 
  	  		.catch(console.error);
    	}
    } else if(args[0] === "remove") {
    	msg.guild.deleteEmoji(args[1], "none")
    		.then(emoji => console.log("Removed the [" + args[1] + "] emoji from the guild.")) 
    		.catch(console.error);
    }


}

module.exports.help = {
  name: "emoji"
}```
languid dragon
#

where are you running "module.exports.run"

lethal sun
#

how do you mean

languid dragon
#

where do you execute the "run" method

lethal sun
#

index.js?

languid dragon
#

is that where it's run? 😩

#

ok well have fun xd

lethal sun
#

msg.guild.createEmoji works but msg.guild.deleteEmoji doesn't

languid dragon
#

Thonk do you even know how coding works

#

can you read documentation?

lethal sun
#

not message reaction

languid dragon
#

are you doing it right?

whole condor
#

Hi ! Can someone help me for the sharding? How do I recover shards information such as status, number of guilds, ...

const shard = new ShardingManager('./main.js', {
  token: 'MYTOKEN',
  autoSpawn: true
});
slim heart
#

Look up a guide or something or use broadcastEval and stuff

whole condor
#

I have already looked at the sites ...

slim heart
#

Do something like
broadcastEval(‘this.guilds.size’).then(res=>guild-count = res[0] + res[1])

#

(Concept)

#

Also why are u sharding at 1k

#

Not even 1k yet

#

Oof

whole condor
#

I just did not update the site

earnest phoenix
#

hello

#

someone can help me

#

i get this error

#

$ python Blue_Walker.py
Traceback (most recent call last):
File "Blue_Walker.py", line 1, in <module>
import discord.py
File "C:\Users\BurNet\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord_init_.py", line 20, in <module>
from .client import Client, AppInfo, ChannelPermissions
File "C:\Users\BurNet\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 38, in <module>
from .state import ConnectionState
File "C:\Users\BurNet\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\state.py", line 36, in <module>
from . import utils, compat
File "C:\Users\BurNet\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax

#

xD

prime cliff
#

File "C:\Users\BurNet\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async

#

SyntaxError: invalid syntax

earnest phoenix
#

? how can i fix

lethal sun
#

@languid dragon

msg.guild.deleteEmoji("532223268376150016")
    		.then(emoji => console.log("Removed the [" + args[1] + "] emoji from the guild.")) 
    		.catch(console.error);```
slim heart
#

Is there an error?

#

@lethal sun

lethal sun
#

TypeError: Cannot read property 'guild' of undefined�

slim heart
#

I’m-

#

You can’t

#

Get guild

lethal sun
#

not client lol

slim heart
#

From client

waxen blaze
#

Did u defined client?

lethal sun
#

I fixed

waxen blaze
#

Oh

slim heart
lethal sun
#

sorry about that lol

#

but msg doesn't work neither

#

but msg.guild.emojiCreate does work though

slim heart
#

Well

#

Again: is there any error

lethal sun
#

the one above

#

TypeError: Cannot read property 'guild' of undefined�

slim heart
#

That’s for the client thing

#

Run it again

lethal sun
#

no

slim heart
#

Oh

lethal sun
#

it's for msg

slim heart
#

Are you in the message event?

lethal sun
#

I sent the wrong thing

#

yeah I am

slim heart
#

Let me see the start of your client.on

lethal sun
#

I use a command handler

slim heart
#

Then show me the beginning of the export

lethal sun
#
const Discord = require("discord.js");

module.exports.run = async (client, msg, args) => {```
earnest phoenix
#

guys anyone can help me pls

#

i cant import discord on python

slim heart
#

Do console.log(msg)

#

Right after that .run

#

To see what it says

lethal sun
#
const Discord = require("discord.js");

module.exports.run = async (client, msg, args) => {
  console.log(msg);```
#

like that?

slim heart
#

Yes

#

Now tell me what it says

mossy vine
#

you shuold also close the {} but ok

slim heart
#

That’s not his whole code

#

Read what I asked for first

lethal sun
#

JSON of the message @slim heart

slim heart
#

Wdym json of the message

#

Just screenshot like part of it

lethal sun
mossy vine
#

oh yeah, thats the message object

lethal sun
#

yeah

slim heart
#

Yea

#

Hm

#

Are you sure it’s the error you’re getting?

#

Take a screenshot of the full error screen when you run the code

waxen blaze
#

@lethal sun u are running that .deleteEmoji() code right after .run, right?

languid dragon
#

the full code is above

waxen blaze
#

Hmm Thonk

slim heart
#

Idk

languid dragon
#
const Discord = require("discord.js");

module.exports.run = async (client, msg, args) => {
  msg.guild.deleteEmoji("SOME_EMOJI_ID", "none")
    .then(emoji => console.log("removed"))
    .catch(console.error);
}

module.exports.help = {
    name: "emoji"
}
#

try this

lethal sun
#

that worked @languid dragon

slim heart
#

Is it supposed to be deleting a specific emoji lol

lethal sun
#

yeah

slim heart
#

Ok cool

lethal sun
#

thank you all for the help

languid dragon
#

i changed nothing

#

all i did was remove all the messy code before it

waxen blaze
#

Lmao

#

I have code like this: js min = 1; max = 10; Math.floor(Math.random() * (max - min + 1)) + min; but the generated number is like -394

#

tf why

languid dragon
waxen blaze
#

Hmm, is mathjs library messing with something? Thonkang

languid dragon
#

why would you use a math library

#

it most likely is messing with something

waxen blaze
#

Because there are some fuctions, which are making some things easier for me GWqlabsKek

#

Ok, I'll try it without it

languid dragon
#

make them yourself

#

that's what coding is about tbh

waxen blaze
#

I'm using mathjs library in my bot since I started programming, so I have a lot of commands made with it :D But nvm, I'll change it somehow :D

languid dragon
#

1 file bot frogzoom

void mantle
waxen blaze
inner jewel
#

@waxen blaze min and max are strings

waxen blaze
#

OHHH

#

I realized that

#

Now

#

wow im so dumb

loud salmon
#

inferred types btfo 😤

dapper bear
#

hey i have just made my own bot but need help with it

late hill
#

🆗

prisma sedge
#

tHeN aSk yOur qUesTioN

quartz kindle
#

inb4 "how do i make it online"

late hill
#

Is it possible to put specific servers on a shard

quartz kindle
#

i dont think so

late hill
#

Sad

dapper bear
#

i want to make a leveling system but the one i have set up it keeps wiping the json file

late hill
#

Google "databases"

quartz kindle
#

where are you hosting your bot?

dapper bear
#

im hosting it myself atm

quartz kindle
#

json files have to be used very carefully, because if you accidentally supply invalid json data, the entire file will be wiped

#

thats why using a proper database is recommended, to avoid such issues

#

but if you prefer using json files, be sure to always check if the data is valid and make sure you're not doing more than one operation at a time on it

#

also, if your bot crashes during writing, it will also destroy the file

prime cliff
#

Json files are fine for storing simple data and i have never had any issue with it in C# but i guess it just depends on how you use it

dapper bear
#

i just did json file to test it

prime cliff
#

Also that

dapper bear
#

wanna help me create a leveling system that records to a db?

quartz kindle
#

sure, for 20 bucks an hour

#

lmao

dapper bear
#

lol

#

i dont think ive done too bad with it considering its my first bot 😄

quartz kindle
#

its a great learning experience if you're new to programming

dapper bear
#

bots i am

#

i made my own crypto coin 😄

raw flint
#

how do you make it so its like

if i do a message on join, how do i make it custom to the server

!!!message <message>

#

im struggling here

quartz kindle
#

you want to send a message when someone joins?

mossy vine
#

save it in a database

#

then load from database on guildMemberAdd

daring trellis
#

how to make if a bot no admin rights the message was sent in private message, and if there is something in the chat?

earnest phoenix
#

Check for permissions?

daring trellis
#

Yes

earnest phoenix
#

Look up permissions in a idiot guide

daring trellis
#

What?

mossy vine
daring trellis
#

Checking was not for the author, and for bot

thorn nexus
#

Good day, I need help with getting the id that the user voted for. You can more detailed example of how to do this. JS language.

mental solstice
#

Do you have the webhook listener implemented yet?

raw flint
#

@mossy vine a databasE? i dont have one ;-;

mossy vine
#

then make one

raw flint
#

;-;

last ferry
#

does the C# api support category perm editing yet?

thorn nexus
#

The site displays the number of servers.

#

How can I get the user ID of the user?

slim heart
thorn nexus
#

...

#

I do not work this creak.

dbl.webhook.on('vote', vote => {
    console.log(`${vote.user}`)
});```
earnest phoenix
#

Ehmmmm, can I undo things in Visual Studio Code?

#

Nvm

#

I can also not save the file

mental solstice
#

vote.user will return the Id of the user

abstract fable
#

Anyone know of a bot that can post live information about members that are assigned a certain role e.g. @csgo

The aim of this is to make looking for a group of people to play with in a multi-game environment easier. AND consolidate looking for group text channels to the minimum.

The attached picture shows basic information, but isn't automated. It also doesn't give you a clickable link to the users profile

bright spear
#

@abstract fable Dyno

#

But you do need to run the command

abstract fable
#

Ahh okay, trying to have an automated methed

#

i'll check it out though

thorn nexus
quartz kindle
#

your webhook password

sage stream
#

Is there ever any bot developer looking for a good project?

#

if so how would I find any?

quartz kindle
#

never seen one

bright spear
#

@sage stream you want to pay someone to make a bot for you?

sage stream
#

they're all just so already inspired

quartz kindle
#

at most you'll find developers looking for ideas for their own bots

#

not for someone else's or a new bot

sage stream
#

thats really depressing!

#

that means I'll need to make my own bots.

quartz kindle
#

everyone does

sage stream
#

where would I start

quartz kindle
#

learn a programming language

thorn nexus
#

ok how do i create a webhook?
and what you need to write in the URL

quartz kindle
#

your bot's url, where your bot can be contacted at

#

for example, if you're hosting in a vps with a public IP, your url would be http://yourvpsIP:webhookport/dblwebhook

sage stream
#

gotchu

#

this is going to be really annoying

thorn nexus
#

and if I use PC as a hosting?

sage stream
#

If my bot is only used on my pc, I'm sure it wont require too much harddrive space right?

quartz kindle
#

you'll need to use your PCs ip address and also set up port forwarding for the webhook port

#

depends on the language and libraries you chose, but generally you wont need more than a few MB

sage stream
#

wow thats great

#

would you be able to help me get started

quartz kindle
#

do you have any experience with programming?

thorn nexus
#

js language d.js library

sage stream
#

I've messed around a bit,

quartz kindle
#

in which language?

sage stream
#

I've xhtml, css, php, python,

#

but only the basics

#

and even then I didn't aquire much of it

topaz fjord
#

xhtml and css aren't languages

quartz kindle
#

you could use python then, if you already have experience with it

topaz fjord
#

they're fakes

quartz kindle
#

they are languages lmao

topaz fjord
quartz kindle
#

just not turing complete

sage stream
#

deffo languages

quartz kindle
#

hes trolling

#

xD

sage stream
#

ik

#

i feel it

topaz fjord
#

they're not programming langs in the programmer world

#

They're shunned

#

hecc

sage stream
#

Tim, Ik you said that devs are normally looking for ideas on their own bots

#

but if they make their own, it could still be useful to what I'm looking to develop

#

it's more like several bots will be needed for what I'm trying to create

#

so if you know anyone who'd like to continue to develop a bot in the long scheme of things, I'd appreciate it

quartz kindle
#

what kind of thing would need several bots?

#

the only thing i can think of is server raiding lmao

sage stream
#

I look at all the discord RPG simulators out there and it's pretty pathetic, I've got ideas for a grand scale RPG that wouldnt compare to any other discord RPG

#

this would be very hard to server raid too.

#

It'd almost be impossible.

ruby dust
#

then just make a better bot than those other bots? I don't think there's a need to rate them all this way

quartz kindle
#

rpg bots are hard to execute because of the complexity and discord's limited ways to interact with it

sage stream
#

I have a lot to explain but I want to explain it to people who might share an interest in building this.

inner jewel
#

why would you need multiple bots

#

a single one is more than enough

quartz kindle
#

well, you could have multiple bots acting as NPCs

#

lmao

inner jewel
#

webhooks

sage stream
#

I can explain myself and why I need multiple bots if you'd be interested in hearing me rant

inner jewel
#

you can change the avatar/username per-message for them

quartz kindle
#

its more immersive if you can see the NPCs in discord's user list

sage stream
#

yes

quartz kindle
#

and interact with them independently

sage stream
#

Tim

#

you're right on it

#

bro I'm seriously so ready to make this happen

#

I've got great ideas.

#

Immersive is what I'm going after

#

there's a big stumbling block that I wont be able to get over alone

#

and it's going to be the inventory and item system

#

that's my major problem

#

not to mention it'll need a shop or several.

quartz kindle
#

sounds like you want an rpg system for a server, rather than a public rpg bot

inner jewel
#

each additional bot makes it more annoying for users and more expensive for you

sage stream
#

Not entirely,

inner jewel
#

if it's public

sage stream
#

it'll be very simple only because of one thing

#

normally the user is overloaded with seeing too much happening at once

inner jewel
#

they'll need to invite N bots, setup permissions for N bots, etc

sage stream
#

the way I'd like to set it up is the same as how you would feel IRl

inner jewel
#

and your cost is N times higher

quartz kindle
#

i could see it happen for a single server or a specific set of servers, not as a public bot

inner jewel
#

unless you write a custom library

#

which is a huge amount of effort

sage stream
#

I'm currently using 2 bots, just let me set these up and I'll show you guys what I mean,

#

I know you guys are trying to do the math with what I'm saying but the way I've got it in my head, it's fool proof.

#

The only reason the user's will get overwhelmed is if they see everything at once

quartz kindle
#

its always foolproof in concept, but when you actually try it, suddenly everything is on fire lmfao

sage stream
#

The way that this RPG will be set up is to make you feel like you're actually doing something something rather than looking at a list of 10000 channels and too many people in one place.

#

this server will be very clean and you'll only see what you're using at that in particular moment.

#

I don't want to explain it because it wont do it justice. I'll show you guys in a few.

quartz kindle
#

hmm

#

you want to use channel permissions to restrict a user to certain areas and have them navigate that way?

sage stream
#

Yup!

#

and I've already got a way to do it.

#

It'll be clean and simple.

quartz kindle
#

that could be very expensive in terms of API usage

inner jewel
#

for a big server, yeah

quartz kindle
#

im not sure how's the rate limit for channel permissions

sage stream
#

I've got something to deter that aswell.

inner jewel
#

you can't get around ratelimits

quartz kindle
#

you can if you use multiple bots with admin permissions

#

lmao

inner jewel
#

each additional bot makes it more expensive to host

#

¯_(ツ)_/¯

quartz kindle
#

thats his problem

#

xD

inner jewel
#

if you have a ton of money to spare

sage stream
#

If something like this got big, there is a way to make money from this.

inner jewel
#

you could probably come up with something

quartz kindle
#

but if its only for a single server, it wont be expensive

sage stream
#

and it would all be put into paying for a server.

#

it will be a standalone server/

quartz kindle
#

a single server with 50k people will use like 200mb ram using nodejs

inner jewel
#

you'll also need to come up with a way of communicating between different bots

sage stream
#

I think we've got something here

#

Do either of you know how to do digital art?

quartz kindle
#

yes

sage stream
#

because that's my next step.

#

Good, this is going to be really immersive

#

hang on,

#

can I invite you guys to a server so this is all in one place?

mental solstice
#

dice.. I'll give you my idea for a big rpg server... webhooks

sage stream
#

Webhooks?

mental solstice
#

the bot will handle commands.. and send out for webhooks to do all the message sending

inner jewel
#

you can have a custom name and avatar for each message

#

while only having a single bot account

sage stream
#

I dont know anything about this, you'll have to tell me more

inner jewel
#

or none, for that matter

sage stream
#

oooh

#

I see

inner jewel
#

webhooks can be used to send messages without a bot

quartz kindle
#

without a bot account?

#

interesting

inner jewel
#

and they allow each message to have a different username and avatar

#

webhooks are just an http post

#

which is why they work with eg github

mental solstice
#

I havent had the time to recode my pokemon vote.. but it would prevent your bot from breaking ratelimits

quartz kindle
#

so you basically send requests and discord will post them for you?

inner jewel
#

yes

mental solstice
#

yep

#

test it using Postman.. I spent a lot of time contemplating writing a bot/webhook system to make a sort of rpg game

inner jewel
quartz kindle
#

how do you specify pfp and username? over post as well?

inner jewel
#

yes

#

eg curl -X POST $WEBHOOK_URL -H "Content-Type: application/json" -d '{"content": "hello world", "username": "memes"}'

quartz kindle
#

awesome

inner jewel
#

avatars are a bit more complicated

#

they must be an image uri

mental solstice
inner jewel
#

as in, a data uri

#

data:image/jpeg;base64,BASE64_ENCODED_JPEG_IMAGE_DATA

#

content-type doesn't matter afaik

#

on the uri

quartz kindle
#

basically a base64 image

inner jewel
#

as long as it's jpeg/png/gif

#

not sure if webhooks support gifs

#

btw you'll probably want to get a lib to handle webhooks for you

#

as they also have ratelimits

#

and implementing those is a pain

mental solstice
#

I developed for an rsc private server, added webhooks for their ingame market, whenever an item is put up for sale, the webhook posts picture of the item, price and name

#

dice.. I will send u something in a sec.. if u want it

sage stream
#

oooo

#

you did rsc?

#

yh go for it

#

@mental solstice

mental solstice
#

k I'll be home soon

fierce owl
#

How can I send a message if a command does not exsist

client.on('message', message => {
    if (!message.guild) return;
    if (message.content === prefix + ?)
        message.channel.send('`That command does not exsist`')
})
soft plaza
#

You shouldn't

amber fractal
#

^

stray wasp
#

anyone know the advantages of eris compared to discord.js?

amber fractal
#

nothing

#

jk idk

knotty steeple
#

more performance

#

not really but

clever radish
#

So weird issue: I have a singular user that is seeing mostly blank rich-embed messages (no text, but can see emojis and footer). They appear fine for everyone else, including myself. Any ideas on what could be the cause?

amber fractal
#

are they on mobile? Have they restarted discord, if yes have they restarted the device?

clever radish
#

Yes to restart (from what I've been told 😉 ), no to mobile

amber fractal
#

ask them if discord is up to date?

clever radish
#

According to them, yes

amber fractal
#

Is that for all embeds?

clever radish
#

Correct, appears to be across multiple bots as well for them, just got a second report now

amber fractal
#

Tell them to goto their settings and turn on link preview

#

(According to reddit)

#

Its in "Text and Images"

clever radish
#

Yeah, had them try the same thing before (only thing I could find on the issue, haha)

#

Though it does seem like clients on the latest discord update are having the issue? Not sure if any other people are receiving similar reports though =/

#

Personally haven't done today's update yet so would explain why I can still see everything fine

#

Resolved: Seems like all clients are fine now

last ferry
#

Can anyone help me with retrieving messages from the cache in C#? I have it downloadasync when a message is deleted but when i try to retrieve it using context.channel.getcachedmessage(id) it returns null

#

i have the id stored somewhere so i dont know why it isnt retrieving

#

and i have the messagecachesize set to 100 in the config

earnest phoenix
#

share your code

#

oh wait nvm

#

actually yes

fierce owl
#

My question went unanswered so I am reposting it
How can I send a message if a command does not exsist

client.on('message', message => {
    if (!message.guild) return;
    if (message.content === prefix + ?)
        message.channel.send('`That command does not exsist`')
})
amber fractal
#

We did answer it

fierce owl
#

steven

#

stop

amber fractal
#

Just not in the way you want

fierce owl
#

yea ik

amber fractal
#

People don't like it, myself included, but if you really want it use .startsWith() and not content ===

last ferry
#

@earnest phoenix ```csharp
client.MessageDeleted += async (msg, channel) =>
{
await msg.GetOrDownloadAsync();
//i also store msg id in a text file
};

#
var msg = Context.Channel.GetCachedMessage(id)```
#

msg returns null

earnest phoenix
#

How would I fix this error?

'use strict';
module.exports = function (min, max) {
    var prev;
    return function rand() {
        var num = Math.floor(Math.random() * (max - min + 1) + min);
        return prev = num === prev && min !== max ? rand() : num;
    };
};
amber fractal
inner jewel
#

the issue is the unique-random module being broken

mental solstice
#

hmm.. web page is responsive on pc when i shrink browser.. but not on mobile

mental solstice
#

nevermind had to add viewport meta

fading forge
#

@fierce owl
you can do it by using some kind of else function, like if there is no command that matches whatever the user typed then send that

#

however

#

I seriously recommend not doing it

#

its annoying and people will avoid your bot for it

unreal junco
#

can anybody help me with a code i dont know how i could code this ive been thinking for days

mental solstice
#

easier if u just ask the question

unreal junco
#

ok

#

how do i make when some says anything that isnt a number it deletes the word and says thats a invalid number then that message deletes after 5 seconds

bright spear
#

what lib and version

mental solstice
#

yes, what programming language

bright spear
#

thats not the same but ok

mental solstice
#

i know.. preemptive to.. what is a lib

unreal junco
#

im confused

mental solstice
#

what is your bot written in

unreal junco
#

wdym

#

oh

#

atom

bright spear
#

you are coding a bot correct

unreal junco
#

yeah

bright spear
#

what library are you using for it

unreal junco
#

discord.js

#

thats the only one ik

bright spear
#

what version?

unreal junco
#

the latest i think

bright spear
#

you can either check Discord.version in your code or run npm ls discord.js in your console/terminal/powershell/command prompt

unreal junco
#
   │   New prerelease version of npm available! 6.5.0-next.0 → 6.5.0   │
   │     Changelog: https://github.com/npm/cli/releases/tag/v6.5.0     │
   │                 Run npm install -g npm to update!        ```
bright spear
#

...

#

above that

unreal junco
#

└── discord.js@11.4.2

bright spear
#

ok

#

so you know how to do something on a message right

unreal junco
#

no

#

ive only been doing discord.js for 5 days

bright spear
#

you havent made any commands or anything?

unreal junco
#

yes

#

i think i might have worked it out

#

give me 1 min

bright spear
#

so what have you done Thonk

#

also have you used js before

unreal junco
#

for 1 week

#

i made already 1 bot

bright spear
#

its probably easier to code a bot if you have already learned the language

unreal junco
#

that was a practice run

bright spear
#

ok so do you know how to use client on message

unreal junco
#

yes

#

wanna see my code so far?

bright spear
#

it will be the opposite because isNaN means "is not a number"

unreal junco
#

oh

bright spear
#

you could just negate it (!isNaN(...)) to find the correct answer

unreal junco
#
  if (message.channel.id === '529508285884399637') {
     if (isNaN(message.content)) {
       message.delete()
       message.author.send('Thats a invalid number!')
     }
   }```
#

would message.reply work?

bright spear
#

yes

#
unreal junco
#

it didnt work

#

this is what i did

#
const Discord = require('discord.js');
const bot = new Discord.Client();


bot.on(`message`, message => {

  // variables
  let sender = message.author;
  let msg = message.content.toUpperCase();
  let prefix = 's.'

  // delete anything but numbers
  if (message.channel.id === '529508285884399637') {
     if (isNaN(message.content)) {
       message.delete()
       message.author.send('Thats a invalid number!')
     }
   }
});
    bot.on(`ready`, () => {
      console.log(`Bot has started, with ${bot.users.size} users, in ${bot.channels.size} channels of ${bot.guilds.size} guilds.`);
    });


bot.login('TOKEN');```
#

when i ran it no error came up but when i went into the channel nothing happened

bright spear
#

try logging things at different points to see how far it gets

unreal junco
#

what do you mean?

bright spear
#

console.log('test') will log test to the console

#

so you can add logs at different points in your code

unreal junco
#

ok

bright spear
#

like one in the if...id and one in the if isNaN

unreal junco
#

?

bright spear
#

then you can find where the issue is

unreal junco
#

what do i put there?

bright spear
#

i told you, try logging something with console.log

unreal junco
#

i did\

bright spear
#

and?

unreal junco
bright spear
#

where did you put it

unreal junco
#

the file?

bright spear
#

the console.log

#

where in your code did you put it

unreal junco
#

at the bottom

#
  // variables
  let sender = message.author;
  let msg = message.content.toUpperCase();
  let prefix = 's.'

  // delete anything but numbers
  if (message.channel.id === '529508285884399637') {
     if (isNaN(message.content)) {
       message.delete()
       message.author.send('Thats a invalid number!')
     }
   }
});
    bot.on(`ready`, () => {
      console.log(`Test`);
    });```
bright spear
#

try putting one each where i put those 2 red lines

#

so we can find the issue with the deleting code

unreal junco
#

so i put it in between?

bright spear
#

yeah

unreal junco
#
  // delete anything but numbers
  if (message.channel.id === '529508285884399637') {
    console.log(`Test`);
     if (isNaN(message.content)) {
       message.delete()
       message.author.send('Thats a invalid number!')
     }
   }
});```
bright spear
#

yeah and put another one after the isnan

unreal junco
#

it showed nothing

#

its like its not reading the code

#

🤔

bright spear
#

its possible that the channel id is incorrect

unreal junco
#

i changed the channel

#

and the "test" console log didnt show

#

but it works

#

when i say message.reply the bot tries to delete the message and it deletes but how do i make the bot delete its own message after 5 seconds or something?

#

and now the bot is telling its self lol

#

and then it repeats

bright spear
#

make it ignore itself

#

and to make something happen after 5 secs use settimeout

unreal junco
#

i cant make it delete

#

i fixed it now the bot wont repeat itself but it wont delete

#
       setTimeout(function(){message.delete}, 5000);
bright spear
#

uh

#

that will try to delete the original message again

#

since thats the message

unreal junco
#

then what to i do?

bright spear
#

you would need to set the new message the bot is sending to a variable

unreal junco
#

wdym

bright spear
#

so like instead of js message.author.send('Thats a invalid number!') you would do js let botMessage = await message.author.send('Thats a invalid number!')

unreal junco
#

oh

bright spear
#

then you can run botMessage.delete()

#

remember you always need the () for methods/functions

unreal junco
#

i need add a async but wherE?

bright spear
#

where you start the function (js bot.on(`message`, message => {)

unreal junco
#

oh

bright spear
#

so that should be ```js
bot.on(message, async message => {

unreal junco
#

yep

#

i get ya

bright spear
#

k

keen drift
unreal junco
#

now it works googlethumb

bright spear
unreal junco
#

is there a way to make your bot online 24/7

earnest phoenix
#

VPS

#

Most are paid tho

#

But small bots could try using glitch

unreal junco
#

what glitch?

void mantle
#

its a bad place to host your bot

bright spear
#

or you could try to use heroku but it will be complicated

earnest phoenix
#

@void mantle small bots are fine but yeah.. not recommended but atleast its free

bright spear
unreal junco
#

ok

earnest phoenix
#

advaith heroku was never focusing on hosting nodejs apps tho

#

and it doesnt save databases

bright spear
#

but it will be complicated

unreal junco
#

i just want it so my bot make sure no one says anything else but numbers

bright spear
#

k

earnest phoenix
#

yea then glitch is fine

unreal junco
#

cause the bot sleeps once my pc switches off

earnest phoenix
#

ofc it does lol

#

PCs dont run apps when the PC is off

mental solstice
#

dont turn your pc off

bright spear
#

lol

unreal junco
#

lol

bright spear
#

or just use glitch

#

they'll run your bot on their servers

unreal junco
#

ok

earnest phoenix
#

Or buy a raspberry pi starterkit, install the software on it, attach it to your router (ethernet) and host it on there :p

bright spear
#

i think the key issue with that is buy lol BlobLul

earnest phoenix
#

Still more expensive than a vps for $3/month thi

#

tho*

#

yea true lol

bright spear
#

i have a pi b+ and a pi 2 b somewhere

earnest phoenix
#

i got a pi 3 B

#

recently switched to a vps

#

cuz my pi couldnt handle it anymore

bright spear
#

ive never actually ran stuff on my pi

#

only played with it like a comp

earnest phoenix
#

and my shitty ethernet connection also killed it often

#

So ye

bright spear
#

rip

earnest phoenix
#

Atleast my pc has good ethernet

#

Advaith do you know how to fix the lightning icon?

#

Ik its power related but