#development
1 messages Β· Page 496 of 1
but 18.04 ubuntu is fine for you
most likely
so far i opened linux then i don sudo apt-get update then i done sudo apt-get install apache2
then what do i do? i dont know
@earnest phoenix you suck my dick
@earnest phoenix mega is being mean to me
tell marco to also suck my piss
bro shut up
i dont know how you are talking while you should be sucking my dick
@earnest phoenix i'm gonna beat you ass when after you suck my dick
@earnest phoenix bro you eaither take action or i will reply to this dude
xD
i will take action after you suck my piss too
@empty bloom I think you will get banned soon
oh man thank you
congrualations
i also got a report
@earnest phoenix
this bot dmed me out of nowhere
@earnest phoenix tom so what is my next step?
i installed apache2 on my linux
i can help u with errors but im not a tutorial
hmm but google can may be
oo, but a tutorial would be nice i dont know if i was meant to even upload my website on the www directory
@vocal meteor ask your friend google to find me a tutorial then
lets see
title
how host a website on linux
none of those youtubers
tell you how to host it they tell you how to install it
what do you use ubuntu or kali
hmm i am trying
In this video you will see how you can visit your website and edit webpages. To see your local ip: ifconfig To list the files in a directory: ls To edit or c...
Easy Hosting Control Panel (EHCP for short) is a free and open source hosting control panel that can be used to host websites, create emails, sub domains, an...
Is that ok
i watched some of those ones
Bots don't have bots, silly.
how do you set a custom backgound on the server list website
wadu heck @remote fractal
css backgrounds
@vocal meteor i have been through those videos
and its hosted on local ip
on public man
hmm you want to host it publicaly
i have a domain
infact my website is hosted on another vps
but i want to learn how to do it
here i will dm you my website
ok
http://tetrabot.cf / it is dead
is that your website?
yeah
xD
theme is nice
yeah doesn't have ssl certificate
for dashboard //dead database for website cpanel //active
@tidal ridge @magic anchor help me host my website on you guys
is it free @vocal meteor
yes glitch is free you can create number of projects as you want
@tired rose is hosted on glitch
hello express
then what
dm me the url
why are you hacking me
as you wish
accept my request to join rg
@vocal meteor can we talk voice to voice
bro
we have got closer than just being discord people
well my datapack is over my internet is too slow
@vocal meteor
xd the website doesn't open for me
why not
finally website opened
A socket error occurred during the Upload test. A firewall could be blocking the connection or the server might be having some issues. Please try again later. ```
xd
that
this is rape
was a mistake
i think we are breaking discord
i dnt expect that
its lagging for me
not sure why
@tough lark join back
no thanks
why not
aaaaaaaaaaaaaaaaaaaaaaaaaa . omg i wanna explode rn
this is getting on my nerves
ITS TREGIGERING ME
SOOOOOOO BAD
I WILL BREAK EVERYTHING
@earnest phoenix https://absd.glitch.me/
when im trying to install node this happens https://samuraistacks-leader-of-the.succ.world/i/bugpnl07.png
how to make it actually install
@knotty steeple https://ubuntuforums.org/showthread.php?t=1642173
Masters,
I always got this when make updating at terminal. Kindly advise. TIA
Setting up getdeb-repository (0.1-1~getdeb1) ...
--2010-12-10 14:35:00-- http://archive.getdeb.net/getdeb-archive.key
Resolving archive.getdeb.net... failed: Name or service not known.
wge...
sudo dpkg --configure -a this gave no output though 
UnhandledPromiseRejectionWarning: DiscordAPIError: 404: Not Found
warning.js:18
at item.request.gen.end (c:\Users\adamh\ModoBot\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:79:15)
at then (c:\Users\adamh\ModoBot\node_modules\snekfetch\src\index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)```
hey guys
I'm getting this error using discord.js
anyone got the same?
so uhh
whats the code mate
just a simple client.login(token)
token is defined
no for the uhh
warning.js
wat
because that's where problem says its at
its a discord api error
return console.error(message);```
yea
is it general rn though
that's line 18 of warning.js
function writeOut(message) {
if (console && typeof console.error === 'function')
return console.error(message);
process._rawDebug(message);
}```
that's the surrounding function
@knotty steeple are you getting api errors?
no
you're using the latest discord.js?
11.4.2
just require discord.js and get version
node_modules/discord.js/
wait a sec
There should be a 3 line file with client version
Yeah
not codewise?
omh
fixed it
sorry about that guys
accidentaly had owner: ' '; for the client constructor
Just delete all of your node_modules and reinstall using npm
@queen fog take a look at this https://play.google.com/store/apps/details?id=com.sololearn
When I uploaded my bot to a Linux server, it lost the ability to play audio files. Any reason for this?
NodeJS and NPM versions are not the interference.
You probably had some external dependencies which need to be installed on your Linux server
If I were running my bot from the command line on a windows desktop, is it possible to have it execute autohotkey scripts? is it possible to do that through javascript at all?
I was thinking, if it was running off a dedicated pc and that was possible - it would open up many many possibilities
I think if there is an AHK CLI, you could use an exec
Well here's one thing I was thinking you could do with that, if you had a bunch of small ahk scripts and you executed them in the correct order you could make the bot do something like, open up mspaint, copy paste some different images onto the canvas, type up some text boxes on top etc, save the image and then post that into the chat of the server your in, you could potentially communicate everything to the users with fancy looking images, instead of just using text / embeds or whatever
That sounds like canvas, but way harder
whats canvas? 99% of my coding experience before learning this stuff is making C# unity games
https://www.npmjs.com/package/canvas pretty nice
oh so this does pretty much exactly what I was thinking of?
cool π ill look into it
ty
@kindred jewel if you know C# why not make a bot in that lang?
Can I do that? I hate javascript already, but ive already coded a whole music bot with it as a learning exercise lol
Yeah its just that there is more docs on Discord.js
the biggest one is Discord.Net
Than there is for Discord.net
yea but if you know C# then you get easily into Discord.Net
and it also has docs
even tho they aren't always up to date
@kindred jewel if you wanna do image manipulation in C# i would recommend https://github.com/dlemstra/Magick.NET
these are C# bindings to ImageMagick whats a popular image manipulation lib written in C
damn, thank you guys so much π
π
even tho i agree d.js has mostly the best docs thats no reason to not use a langauge you already know since you can do way more in a langauge you are familiar with already then some new lang
^
I load a JSON file into a variable. The only issue is its size (around 50GB). Any way to decrease this size?
It causes a glitchy glitchy
I don't think the size is the only issue there lmao
I have a question about sharding
why do you have a 50gb json lmao
is it absolutely necessary to shard your bot once it hits over 2.5k?
I won't need to worry, I only have 25 servers. I need 100 times more servers to reach that point.
Do \EMOJI
it's like <
id>
and then you'll get something like: \π
Oh wait
No try to do it
ah
It'll look soemthing like this: !thonkku
@earnest phoenix

epic thanks
Yeet my variable measures 51GB when I put it in a text file
im getting a weird error when trying to use a config file with js it says Unexpected end of JSON input
You are missing a symbol
on my index.js this is what i have const config = require("./config.json");
"prefix": "<>",
"token": "token-here"
}```
π€
want me to send the error message
Yeah screenshot it or put in a code block
at JSON.parse (<anonymous>)
at Object.Module._extensions..json (internal/modules/cjs/loader.js:708:27)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/lukebaird/Desktop/Coding/Bots/JackABot/testing/node_38dfe050cd695.tmp:3:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)```
that should be fine
ive looked everywhere online and i cant find anything on it
- send the whole file
- how are you requiring it
Check if it is like this
"prefix": ">",
"ownerID": "263568768456851458",
"logs": "495609131596775425"
}```
without logs and add token
Oh
nothing wrong with it

WHo is a alt?
my alt
oh
i keep accidently switching
@earnest phoenix send your index.js file also make sure you saved them
One sec my discord is bugging out
You have three monitors?
yeh
nice
3 accounts
Dang
Ah
const client = new Discord.Client();
const config = require("./config.json");
const fs = require("fs");
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', msg => {
if (msg.content === config.prefix+'ping') {
msg.reply('Pong!');
}
});
client.login(config.token);```
other than driving me and my linter crazy, nothing wrong there
ill try
okay
also make sure you have the files saved
tho im curious if your token is escaping
"prefix": "<>",
"token": "token-here"
}```
Have you hit save?
yes
honestly i dont know, there is nothing wrong with any of that
I've had files bug out on me before I just deleted the file and pasted the stuff back
Yeah
Either that or windows didn't allocate/format properly
I just ran it through terminal itβs working now
Oh okay
Thanks
π
π
How do I get a number of guilds the bot is in using eris? Why am I using eris? Maybe it uses less ram idk
help plox thx
Yes
Eris is gay
I wasted lots of my time. I thought it'd use less ram. It doesn't use less ram.
Dude, I don't even know this and I knew that....
In fact it uses more
Use discordjs
I do use discord.js. I didn't like the fact that it used 120mb of ram for a simple bot though (which just deletes a message if it has the correct words in it). I thought eris'd use less ram. It uses 90mb. Totally worth all the time I put into it /s @earnest phoenix

Why do I get this lol:
WebSocket connection is closed: code = 1001, no reason.
exe dee
Its already fixed tho
π
(node:2427) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
at item.request.gen.end (DELETED/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/client/rest/RequestHandlers/Sequential.js:79:15)
at then (DELETED/node_modules/.registry.npmjs.org/snekfetch/3.6.4/node_modules/snekfetch/src/index.js:215:21)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
Any idea how to debug this? Trace doesn't show the origin of the exception.
It's because it's at the API level
The error clearly says: your bot is missing permissions
What permissions would commonly be required?
It depends on what your doing
...does it need the kick members permission to make itself leave a server?
Doesn't make much sense but I'm out of ideas.
When in doubt, just give the bot full permissions
That's not fixing the issue; it's avoiding it 
It does set its own activity; does this need an additional permission?
this.queryBot.user.setActivity("!help | " + this.queryBot.guilds.size + " servers", { type: 'LISTENING' }).then();
no. and that is not per server so how would it be... lol
Oh, right
I'm overthinking this already
Don't have a clue where the issue might lie
add a listener for unhandled promise rejection
I think you get a proper stack trace
So know I know that's an option.
I've added a snippet that supposedly does that but now permission exceptions aren't being thrown
.
Might have to check the logs after a while.
promise rejection is not an exception btw. and make sure you log everything from promise rejection listener
permissions error most likely from kick, ban, anything ur role doesnt have permissions to do
@lucid iris you don't have much to go on...

The API is rejecting the request because your bot application is missing a permission
So I need to look for something that isn't working?
So far everything seems like it does.
catch ur promise rejections and handle them
it wont fail if it has correct perms
Tried this:
process.on('uncaughtException', function (err) {
console.log(err);
});
...but it didn't seem to work.
I've subscribed to all promises now with error handling so hopefully I'll catch whatever's going on.
uncaughtException doesn't catch unhandledRejections
"promise rejection is not an exception"
No wonder then uncaughtException didn't work...
@lucid iris ```js
const unhandledRejections = new Map();
process.on('exit', (code) => { console.error(forced exit of code: ${code}); });
process.on('unhandledRejection', (reason, p) => { unhandledRejections.set(p, reason); console.error(Unhandled rejection:, p, reason); });
process.on('rejectionHandled', (p) => { unhandledRejections.delete(p); console.error(Rejection handled: ${p}); });
process.on('uncaughtException', (err) => { console.error(Caught exception: ${err}); });
process.on('warning', (warning) => { console.error(Process warning: ${warning.name}\nMessage: ${warning.message}\nStack trace:\n${warning.trace}); });
throw that on the first line of ur entry file
Thanks, gonna make use of it..
Shouldn't it be Caught exception: ${error.message}
if u did
console.error(`Caught exception: `, err);
it would print the entire object
i got that code like 4 years ago
and never rly touched it
:D
i dont use it anymore
ctx.guild.default_role.permissions_in(ctx.channel).read_messagesis this a good way of checking if everyone role has permission to read messages in current channel?
@ruby dust Deivedux can you be more clear? are you trying to check if a specific user has access to a specific channel? or you are trying to get a list of the users who can read a certain channel?
My tempmute don't work can anybody help me ?
is the limited speed that bots can spam messages to the chat something that you can get around easily?
like on my own server
I mean what I mean, check if the default role has access to the current channel
Im looking for developers to help me out on my bot dm me!
its discord.js im new to development i released beta of my bot yesterday its on 27 servers and i need experienced js devs
You don't say..
dm me if there is money involved
dm me if the bot isnt going to be complicated 
@knotty steeple dm me for succ
dm me just because bot
Can someone help me, I forgot how to make a command to leave a guild, such >gleave id
oh ok
Just managed to shrink my bot line-count by 6% and have everything remain fully functional
ok
can someone just help me make my bot
im trying to make a mod bot
what lang
english
nice
or engrish
go learn a programming language first, no one is going to spoonfeed you code
english is a human language
I told you to learn a programming language
I suppose you could consider natural languages a form of programming language if you're commissioning a developer.
just learn a programming language
i put every thing i probly need here https://docs.google.com/document/d/1Rx_9mBT8ci9S3dXvuwUNwiCrQBEC5f-31Q33aMK8R1g/edit#
Python Library This is our official Python Library for discordbots.org, if you have any issues please submit an issue on our github. For full documentation please visit this link Github Link Installation Install via pip (recommended) pip install dblpy Install from source gi...
...what
I think he's doing that commissioning thing
that docs is such a mess...
Does it include a budget?
oof
cause it isn't free π
you don't even have a goal, you are just writting everything you see that involves a discord bot
didn't you just copied the python api desc for discordbots.org
no theres no budget
yes
also your docs contain not only python language
you have a mixture of different languages
that java code at the end tho
Im going to try to make a bot about Fortnite. If I could get help that would be amazing.
another guy without knowledge trying to make bots 
oh i did not know there was java script at the end
LOL
Im going to try to make a bot
this has to be troll
there isn't
I can sorta code
its java
does fortnite have an API or something?
@weary radish what language can you code in
@earnest phoenix already told him to learn yesterday
Im learning Java, and Lua
i cant find the lik for the learn python thing
lua haha yes
just learn javascript if ur doing that
Ok
im joking
because uh lua and js have some things that are the same
There is an api
Lua is like a simpler version of py
samurai
python? nah
is lua hard to learn
no lul
kk
@earnest phoenix if you want to make a decent bot, drop everything, learn everything about python, not just the basics, know that you aren't going to make something cool off the bat either, you will be able to play around with python and make more than just a discord bot once you'll learn enough, which won't be as soon as you think anyway
i want to use it thtas why i asked
i only know python basics 
Lua is actually quite similar to py from what I've seen
variables are similar to js besides using local instead of const/var/let
im just trying to make a mod bot for my server
ok
you won't go anywhere if you don't know a programming language
Just use a pre-made one if you don't understand what we are saying
im good at useing scratch i can do any thing on it
lol
Scratch
Desire is the first step I suppose
Lemme find a project I did when I was younger.
uwu
oh right, why not just use public bots? there are like over 3 thousand of public bots hosted for users for free and people still want to go making bots 
LOL. I just saw a google search for "What coding language does scratch use" oml
thats important
School 2.0
ikr
we need to know whats hip and whats not
you know why people want to make bots so badly?

because they think it's as easy as using bot commands
Yeet
It isn't?
https://scratch.mit.edu/projects/121407823/ I made this in about a day or two.
Make games, stories and interactive art with Scratch. (scratch.mit.edu)
Dang
well and also know what to type as well
same
there's a big difference between just trying to make a bot and actually learning the language while making a bot
Python is pretty easy to learn imo
not much stuff as now 
After I "Masterd" Python I wanna learn JS
Js is cool
i made crossy road in scratch and it can be used with w a s d and the arrow keys
Learn it if you have time
The developer of crossy roads is here???
@earnest phoenix in scratch bloks or scratch code?
Big fan of yours
i made this https://scratch.mit.edu/projects/249904075
hold on
(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function oof
ok its shared https://scratch.mit.edu/projects/249904075
Make games, stories and interactive art with Scratch. (scratch.mit.edu)
a part is not done
but the car turn
theres levels
not done yet
and an easter egg
im not telling my age
me neither
lol
i never tell my age to anybody
other then my friend
s
same
so uh
why
``
(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function
any idea
why basic javascript
isnt allowed
;-;
/var/cache/apt/archives/locales_2.27-6_all.deb
/var/cache/apt/archives/libc-l10n_2.27-6_all.deb
/var/cache/apt/archives/libc-dev-bin_2.27-6_amd64.deb
/var/cache/apt/archives/binutils_2.31.1-6_amd64.deb
/var/cache/apt/archives/binutils-common_2.31.1-6_amd64.deb
/var/cache/apt/archives/libbinutils_2.31.1-6_amd64.deb
/var/cache/apt/archives/binutils-x86-64-linux-gnu_2.31.1-6_amd64.deb
/var/cache/apt/archives/libc6-dev_2.27-6_amd64.deb
/var/cache/apt/archives/libgpg-error0_1.32-1_amd64.deb
/var/cache/apt/archives/libgcrypt20_1.8.3-1_amd64.deb
/var/cache/apt/archives/liblz4-1_1.8.2-1_amd64.deb
/var/cache/apt/archives/libc6_2.27-6_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)``` im trying to install pip and i get this?

installing pip in a server?
on my debian server yes
uwu
I'm pretty sure it should work if you try sudo apt-get install pip3
actually there's a difference between python and python3
same with pip
now I'm thinking that your server is not up to date
i do have a rasbery pi
try this sudo apt-get update sudo apt-get -y upgrade
also try to reboot your server with sudo reboot
debconf: delaying package configuration, since apt-utils is not installed
dpkg-deb: error: archive '/var/cache/apt/archives/base-files_10.1_amd64.deb' contains not understood data member control.tar.xz, giving up
dpkg: error processing /var/cache/apt/archives/base-files_10.1_amd64.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/base-files_10.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)```
fun
worth mentioning a mod yet?
nah
they'll just gonna annoy us more then...
their problem is they very persistantly think that they know scratch and ignoring everyone
and wants to make a bot
yep but i know scratch
very good
ok
so uh
what
idk
did you finally learn python
are you joking?
ehhh
scratch worst programming language
writing linux scripts is where its at 
I mean tbh Scratch is worse nvm
is scratch even a programming language tho? 
Discord bot maker is π
jk
ew gros
i have alot of tabs open
discord bot maker makes a bot in js
I use node.js
i respect discord bot maker
can you make something better than the existing dbm?
Probably not tbh
i normaly dont have that much tabs open
Its already pretty good
plus you didn't answer my question
never tried it though
dbm is good software just not good for making bots
lol can you make like websites on it and stuff..?
if anyone does want to help me i will make you an owner
dbm is good for making books
no
yes
its not
its yest
well
still getting this error
(node:3284) UnhandledPromiseRejectionWarning: TypeError: Object.keys is not a function```
Idk how to fix it at all
it is an object I <promise>
show code
lol
var chatdata = {hi:{"hi":0.45, "the":0.1, "hello":0.45},the:{"hi":0.33, "hello":0.33, "the":0.33}}
var Keys = Object.keys(chatdata)```
i have more most of the time 
tbh
i be on chrome most of tine
without realizing it
My computer hates me
π
Luckily Firefox can handle 40 tabs
what
no thats chrome m8
since it just started up its a bit high https://i.imgur.com/pEP64i2.png
yes
Jonny Jonny.. yes papa..
lmao
sorry
DM me I'm hiring experienced discord.js developers to help out on my bot as I'm new to development beta released yesterday and we just hit 27 members.
27 members
people still do these ads?
lol
are u sure about that
yeet
have more than mine
i should vote lock shit
I'm never votelocking, I don't want my bot to be attached to some site, it's a discord bot after all
restrict commands from users that haven't voted for the bot
like coinmaster
I mean, I wouldn't even give bonus for that, I'm totally against my bot being attached to some site like that
if people vote for my bot I'd appreciate their support
i mean i will only vote lock if i have to
ie. a command takes a lot of resources to do
it's not really a development question, but for those python users, is it better to filter words if they containt in message.content or message.content.split()?
idk how else to explain
split basically means turning a string into a list of strings, in this case separated by spaces
How can you make it so your cooldown works perfectly
Like when you reset bot
no one can use the command
if they used it before the reset
stop talking in bold
Omg
also always say the lib ur using
i did
Hey does anyone happen to know of a npm package that can search/find/fetch github repos and give metadata kthx
Yeah I already tried that but I wan't something that would actually look up a repo by name or id
looks like thats what the first result does
yw
message.mentions returns a list of mentioned member objects @pseudo inlet
Does a profanity filter count as autoresponses? (It says "Warning: profanity detected." upon detecting profanity) One fun thing about my filter is that it doesn't trigger on words like s__crap__ but it does trigger even if the word has spaces in the middle (e.g. c* **), a feature which most profanity filters lack.
Everything is an autoresponse if it doesn't have a toggle
Why do people have to make their features enabled by default 
ie. Nightbot's auto channel commands
Best way of doing it is to promote your features your bot has and let those servers enable them if they want so
I have everything disabled by default with the exception of a few core commands, like help, prefix, stats
scrap
bot.on('message',message => {
if(message.content.startsWith(Prefix + "giveaway")) {
let embed = new RichEmbed()
.setTitle(`Giveaway`)
.setDescription(`React with :tada: to enter!`)
.addField(`Item`,``)
.setFooter(`Ends Wednesday , October 3rd , 2:00PM EST`)
.setColor(`RED`)
message.channel.send(embed).then(function (message) {
message.react("π")
})
}
})
Can anyone help me make it so when someone does >giveaway (item) it shows it on The Item Field.
why are you posting that
it's very clear
just set the field value to whatever arg is provided
idk how to do >giveaway (item) and make the itme show up on the Item field
args
A guide made by the community of discord.js for its users.
read up
there's a guide on args
i'm on holiday and don't wanna explain coding on mobile
i want it to allow spaces it does a , for spaces
.
Seems lit
async def servcount():
await bot.wait_until_ready()
await asyncio.sleep(10)
whilelo = 1
while whilelo > 0:
async with aiohttp.ClientSession() as dblsess:
async with dblsess.post("https://discordbots.org/bots/452598458625425428/stats", json={'Authorization': 'notoken4u','server_count': len(bot.servers)})
await asyncio.sleep(900)
how does this not work? having invalid syntax errors
in this
how would i patch this?
@earnest phoenix You send your guild count to them via a POST API. You'd put this request in a loop, and have it send the guild count every 15 mins or whatever you want.
nice i was thinking about that
any idea why my async with is causing an error?
not sure what lang is that
python
how long will dbl take to process the server count?
I have a question
How does everyone in here get there bot running 24/7
I'm kinida new

you'd have to use something called a process manager (basically like task manager in unix-like OS's). There's like a million ways to do it. Some languages have libraries that'll do it for you.
So something like systemd or supervisor could be used to make sure bot keeps running, and restarts if it fails. It seems like python has some libraries you could pip install to achieve similar behavior, although I haven't tried them.
To have your bot running 24/7 it needs to be on a machine which can run 24/7. As an example a server or a VPS
I manually process every message and command like someone in the mail service, so my bot is offline 8 hours a day.
π
k
so my bot runs on JS
ok
and i wanna make custom images for things
ok
like what tatsumaki does for her profile
ok
what is a good library or can you point me in the direction on how to do it?
@steel swallow canvas is better
yeah?
uh?
look. im just trying to lay some images over the top of each other to convey information
well i used canvas-constructor to make my profile command and it was π©
what does your profile command look like?
oh
my second question
so microsoft Azure
i get a free account with my uni
could i feasibly run my bot 24/7 using it?
For Java, I use an xhtml2image library which seems to work pretty well buts it's quite slow (upto 1 second), how fast are the canvas/gm images?
im not working with Java
I know
canvas is the best option
much faster than gm or any external library
plus, canvas is not only image manipulation, its a full drawing api, so it can do much more than any image manipulation lib
what timzone is used for the isWeekend double voting thing?
thanks
{
"install": {
"include": [
"^package\\.json$",
"^\\.env$"
]
},
"restart": {
"exclude": [
"^public/",
"^dist/"
],
"include": [
"\\.js$",
"\\.json"
]
},
"throttle": 900000
}``` is watch.json, logs say
`SyntaxError: Unexpected string in JSON at position 209
at JSON.parse (<anonymous>)
at /opt/watcher/source/app-picker.js:107:37
at ChildProcess.exithandler (child_process.js:268:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)`
thats all i changed
Are there any good guides on sharing a NodeJS application?
the code or the bot?
Both.
I need to shard my bot.
Yeah. I don't think you know. I'll wait until someone else gets on.
What's on position 268:7?
well is that a line or what
...
If you don't know how to read a position, I don't think you should be making a bot.
A syntax error is easy to fix.
Read the docs!
i have copied code from a bot with the same watch.json
(the only thing that changed)
and still wont work
So uhhhh, my bot was kicked cause of a command with gay jokes
Does that go against the ToS?
I was told it crosses the line but it's meant to be satire
@earnest phoenix https://discordjs.guide/#/sharding/
A guide made by the community of discord.js for its users.
Wanted to get opinions from other devs
i reported it 
When suicide jokes are acceptable but homophobic ones aren't.
There is a difference between jokes and hate speech
One is illegal in some countries
Yeah. Germany is pretty hard on jokes.
Merriem. There's no such thing as satire anymore. Everyone gets offended and upset by every miniscule thing, even if it has nothing to do with them.
I can't agree more...
But I'll follow what the mods say
since it's their job
although it does not directly terminate the ToS of discord I believe
as far as I've read
maybe it violates the ToS of DBL
which I have not fully researched
just from the channel
Hey there, is there anyway to prevent a bot to respond to another bot in discord.py rewrite?
I thought bots didn't typically respond to each other unless you explicitly designed it that way.
oof
Hmm
its python
need help
ok
@rich sail what u need help with?
fixed
Thank you for the contribution @cursive dagger!
I'll give credit in a update for the bot
@earnest phoenix ur welcome! Hope the indent isn't broken cus I am on mobile xD
Can I have VoteBot readded I changed the token
just resubmit it
thats alright, I'll use it in a new update I am working on
and it will have a credits command
I've been getting a permissions error for a few days and I've just noticed the permissions raw value on this server is different from all the others.
Is there anything I can edit on my submission on the site to get the bot to have the proper permissions here?
Do I need to completely remove it and add it back?
if your talking about your bot not sending messages
Where the the everyone role doesn't have all permission your bot needs
this specific server has different permission values for bots
thats what they mean
yeh
I don't see anything not working but sometimes DiscordAPIError: Missing Permissions is thrown.
I've run this snippet console.log(guild.id, guild.me.permissions.raw); and noticed this server had different permissions.
So I thought maybe this one's the one triggering the exceptions.
@lucid iris what is the the full error
But the only thing you can change is the permissions the bot invite comes with
oof
That's the problem, DiscordAPIError: Missing Permissions is the full error.
I've tried debugging it but I still don't know what action triggers it.
Anything else is up to whoever owns that server
wesley what are you talking about
nothing about this talks about his invite tho
It does
Because the invite comes with permissions
So you can make sure
That it has whatever permisisons you need
dbl uses a specific invite link for bots
look





