#development
1 messages · Page 792 of 1
like Compass?
I have compass, but idk how to open the dashboard
I never set a username and password
lmao im so confused
Im used to sqlite sorry if im stupid
its a bit complicated but try reading this https://docs.mongodb.com/compass/master/connect/
do you know the default username and password? I know the host and port
i believe mongodb doesnt have a default password, you need to configure one in the mongo config
another option is to use SSH tunneling
try reading some guides like https://medium.com/@kommradhomer/how-to-connect-mongodb-compass-via-ssh-tunnel-f6ecba22deed
Is there any decent deep learning Q library out there for node
tensorflow.js
I dont believe that has a SARSA approach
Yeah im not sure lmao im pretty dumb when it comes to node
Ion even know how to setup mongo 🤦♂️
disappointing
will probably try this, its dead so i dont expect much tbh https://www.npmjs.com/package/sarsa
Is this the right variable names for mongo? ```js
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/test', {useNewUrlParser: true, useUnifiedTopology: true});
const Model = mongoose.model('Database', { name: String });
const table = new Model({ name: 'Table' });
table.save().then(() => console.log('Saved!'));```
Like tables are tables, and the database is database etc
Since when does mongo have tables

Oh
Well im confused as hell then
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/FlexiboatDatabase', {useNewUrlParser: true, useUnifiedTopology: true});```
there we go
Time to restart
How to make a vote logs

And if people votes than only they can use that command
Anyone here
Hello, I have a code made for me to where I can make it shut down the bot fully, but how do I make one so that it can restart instead of shutdown fully?
This is my code for the shutdown command.
.
.
.
const { ownerid } = require("../../loaders/reader");
module.exports = {
config: {
name: "shutdown",
aliases: ["stop", "exit", "rm-rf"]
},
run: async (bot, message, args) => {
if (message.author.id !== ownerid) return;
try {
await message.channel.send(". . . Bot is shutting down . . .");
process.exit();
} catch (e) {
return message.channel.send(`ERROR: ${e.message}`);
}
}
}
I use the process.exit();, but how would I change that so that it would restart it and not just stop it?
There's no way of doing so
or at least that I'm aware of, one never knows
May I have some assistance with understanding how to code a command that I don't have the knowledge to code?
Generally you'd try to search some info on Google or read documentations
I don't know where to look.
and if that doesn't help, ask coding communities
Now that I think about it, I don't think it classifies as a command.
where to look
Eh, just search your issue up on Google? Like if you are having an error that says "Took too long to do something", you'd search something like "<your programming language> <the error>"
I want to understand how to make a "command" that when you join a server, a verification message is sent to the person's DMs and they respond with the arguments filled out, and then when a person that has Administrator permissions for that server reacts to that message with a specific reaction, it gives them access to the rest of their according permissions, and then logs the verification to a channel.
I'm currently using JavaScript.
Could somebody provide me with some guidance?
Ah, so like a gatekeeper @earnest phoenix?
Sort of.
Commands are basically programs that users call using a message
"when you join a server" would be an event instead
I'll provide an example if it would help you give me guidance.
Like here's the arguments
Username? [0]
Timezone? [1]
Did you read the rules? [2]
Who invited you? [3]
and the bot would then react to the message sent in that specific channel
Just do,
client.on("guildMemberAdd", member => {
//code goes here
member.send(//form to fill out
)})```
There's the first half
okay
so would I put the arguments in between member.send and client on?
or after member.send
Anything in member.send would be pm'd to them
Do you want it to record any messages in it's own channel? Or an embed? Or?
If you want it to be like,
- member joins
- send (username?)
- wait for response, log response
- send (timezone?)...
You'll want to collect.
Either that or all in one message
Otherwise, just send it to them, and watch on message filtered for PMs.
I've never been able to figure out how to use awaitMessages correctly
So one event would send that when they join, and the other would be...
client.on('message', async msg => {
if(msg.channel.type.toLowerCase() !== 'dm') return
//code
})```
So, do I alter 'message' at all?
Whats a discord.js line that I can use for a channel called modlogs so it sends that someone got a punishment?
Example: scltxn#2018: !ban <person> advertising
Bot: <person> banned for: <reason>
Bot in #modlogs <person> banned for: <reason>?
No, that code I just sent would be if the bot receives a PM, it would then run that code, period.
So the //code section would be grabbing what they send, and sending it to a channel.
Can we talk about this in DMs?
You could do,
client.channels.get('ID OF CHANNEL').send(`${msg.author.username} - ${msg.content}`)
How should I make a vote logs with
Only votes people can use this command
A database Pikachu.
I have
So I can just insert that into any moderation code and it would work? @dense drift
Add someone to the database if they vote, and remove them afterwords.
Insert what Scltxn?
Can you give me a sample code
O
I use mongo as a database

Frog, can we discuss in DMs?
Yes here it's confusing😂
Whom telling to whom
@earnest phoenix
So make the database,
client.vote = new Enmap({
name: "vote",
fetchAll: false,
autoFetch: true,
cloneLevel: 'deep'
});
Then run something like this
//on vote
client.vote.set(voter.id, 'true')
And then check when running a command
//on command
if(client.vote.get(author.id) !== 'true') return msg.channel.send(`You need to vote first!`)```
Thanks
You can have it timeout later too with an interval or whatever
Just sub my database when what you use.
Ok
Sure @earnest phoenix, let me see what Scltxn needs first though.
Okay.
As an example, sure.
So, I'm making a bot for other servers, like Dyno and stuff. How would I make it send to a channel such as 'modlogs' and not get an channel id?
Like, it's not just for me.
Because when they guildCreate/ the bot joins, it would say (Hi! Please make a modlogs channel so I can log stuff!)
Okay, in your kick command, when someone is kicked, do something like this
const logs = client.guilds.get(msg.guild.id).channels.get('name', 'mod-log')
logs.send({embed: {
title: `User Kicked`,
fields: [
{
name: `User`,
value: user.toString(),
inline: true,
},
{
name: `Moderator`,
value: moderator.toString(),
inline: true,
},
],
timestamp: new Date(),
}})```
I'd do something like that.
Ok. I'm going to try that.
Is that JavaScript?
Yeah
^^
It's not exactly correct
Oh, I use discord.js.
How?
Would I be able to use it ?
I'm so stupid.
So yes
Lol.
its so convoluted. i just like how expressive python is
Python is silly to me haha
I don't understand Python.
You can use the better embeds if you want too
I just prefer the old kind
¯_(ツ)_/¯
Okay, Night let me check pms lol
Okay.
@dense drift Got an error.
(node:10452) UnhandledPromiseRejectionWarning: ReferenceError: client is not defined
at Object.run (C:\Users\Cools\Downloads\DogBot\src\commands\moderating\kick.js:47:22)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:10452) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10452) [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.
Ah, you need to bring client through your command handler.
And how do I do that?
What is your
command.execute(...```
say in your main file?
Just that line
I need to know what exactly you have there
@astral yoke, you can either shutdown fully, or restart.
If you use pm2, if the bot ever goes down, it'll automatically restart.
I have it ran 24/7, I don't need to worry about it going down unless updating of course.
Nevermind about the channel loggin.
logging*
Okay
Which bot
the reaction roles
that dosent make roles
you could use xenon
I recommend Zira.
I was hosting my bot on vps in Bangalore,India region it was showing near about 325 ms latency each time, I tried it with NYC region for testing and got 22 ms latency, then switched back to Bangalore,India region.
What does it signify?
Should I host my bot in NYC region instead of Bangalore region?
^
Why does it happen that latency changes according to region so much?
but discord api servers are us
yup.
closest to the api servers
That would make sense.
I thought to make it closest to the support server that is in India, but that don't matter, latency depends on distance from discord api servers
thanks for help
thank you guys
How do I embed links in discord.js?
Example: click here to visit our website
I thought you have to use markdown but that dosent work for me in discord.js
you cant
ok thx
jass@jass-K55A:~/Desktop/charm$ make install
bash: line 1: @printf: command not found
make: *** [/home/jass/theos/makefiles/package.mk:80: internal-install-check] Error 1
help pls
@ocean frigateindin ho
what?
const DBL = require("dblapi.js");
const dbl = new DBL(DBLAPITOKEN, bot);
dbl.postStats(serverCount);
dbl.on("posted", () => {
console.log("Server count posted!");
});
dbl.on("error", e => {
console.log(`Oops! ${e}`);
});
It shows error
at IncomingMessage.res.on (/rbd/pnpm-volume/256ccade-fb85-42e6-882f-cd3dd81f765c/node_modules/.registry.npmjs.org/dblapi.js/2.3.1/node_modules/dblapi.js/src/index.js:118:25)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:405) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:405) [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.```
where did you put that code
@late hill in index.js file
Are you sure that ur token is correct
@earnest phoenix yeah
Bcuz when I run on server it works
There is something else error idk what's that
Lemme regenerate the token
It could work
Still same error
@violet nimbus declare serverCount in your ready event, and post there
Doesn’t make sense how that would change anything
yes but that won’t change anything
only the first line and the postStats
@earnest phoenix outside the ready event bot.guilds.size is either undefined or null
They can obviously reach each other otherwise you’d be given an error saying it’s not defined.
@mossy vine thanx it is working
wtf
😁

wont change anything my ass
why does it returns undefined outside of the event
because it hasnt fetched the guilds yet
ready is emitted when guilds and members get cached
so that is when the size property will do anything
but he’s using dbl ready, not the bots ready. But I guess this would make sense
Yes
on the page
"x servers"
Or screenshot
??
Why vote decreased? It was 11 before
Is that a bug?
It's 11 now
Lol
caching is shit
did you recently add the counting? its cached, so it can take a bit to show up
again, dbl caching is shit

There's your guild count
My?
I mean, that's the code to pull it
Ooh
scroll up, youre late
oki
How should I know?
are you posting it correctly? for me it usually updates in a few seconds
you should scroll up smh
@quartz kindle yeah I think but there is no errors now
are you using dblapi.js?
Yeah
do you have the .on("posted") event?
show your code smh
if its not logging then there is a problem lol
plus you are posting before the handler is added
new DBL(token, client) has an autoposting option enabled by default
But it isn't posting so I added code
Why’re you nesting events like that anyways
console.log is ur friend here
that example is from 3 years ago
this is the example you should follow
K
Don't forget to NOT post server count with client.guilds.cache.size with the latest d.js v12, coz only cached guilds are stored (aka some guilds can be missing)
client.guilds.cache.size is exactly the same as client.guilds.size before that commit
no reason not to use it
One of my friends have a bot with 800+ servers (as per new oauth screen), but cached guilds are 600)+
then hes doing something wrong
the cache is still the same, it just moved to a different storage system
@violet nimbus take help from me
Nikal
is it possible to put their "moment" in french?
what
Wha!?
Never heard of 3 params range
oh wait
maybe its to say that 0 is less than 3 and reversing the range or something
so instead of 0,1,2,3 it would be 3,2,1,0
idk
ill forget about it and see if it matters
third param is the step
range(start, stop, step)
range(0, 50, 5) -> 0 5 10 15 20 25 30 35 40 45
hi, so i got a vps and i am new to this
Does anyne know what i do here? I tried cdding to my bot folder but
dir/ls to view your current directory
do you uploaded your files to vps
type ls to console
Is?
ls
ok
show result
Justs makes a new line
windows
I won it and the guy just gave it to me
he asked for my username i wanted, then i chose it, changed my password and we're here now
do you know that guy?
yes
can you trust him?
I think so, he is support staff for Dyno i think, and i'm one of his mods, i won a giveaway
dyno support 
yes
If it's a windows server then try dir
I think windows server has a desktop
That too
Oh, he isnt lol. He is fam and is like a special guy for helping people in int suppport
try dir?
yes
dir: cannot access 'desktop': No such file or directory

do you have access to desktop of server?
idk, i'll ask him
I have no idea what you are running but I still think it's Linux
Bro
🤦♂️
Your server
That is your PC, not the server
Not you
Xd
you can use FileZilla for upload your files
Oh
What is your problem? @digital ibex
I dont know how to host my bot on a vps
On that command prompt, type uname -r and tell me what it shows
Okay
Use filezilla and putty
4.15.0-76-generic
SFTP method
thats what it says
Yeah putty and filezilla are probably the easiest
Of course
filefilza

ssh lost@delta.deltabot.tech thast my thingy
open filezilla and click "File" tab
Read this page: https://help.one.com/hc/en-us/articles/115005585709-How-do-I-connect-to-an-SFTP-server-with-FileZilla-
Before you can login with SFTP, you need to activate SFTP or SSH access in your One.com control panel.
Open FileZilla
Enter the address of the server in the field Host, located in the Quickconnec...
Read this page: https://help.one.com/hc/en-us/articles/115005585709-How-do-I-connect-to-an-SFTP-server-with-FileZilla-
Before you can login with SFTP, you need to activate SFTP or SSH access in your One.com control panel.
Open FileZilla
Enter the address of the server in the field Host, located in the Quickconnec...
Ssh terminal?
i'm not too sure about that one
I think SFTP
Your server has 22 port?
trying to map() through <g>.emojis to display in an embed, but I'ld like to join() them with their link so whenever you want to get the guild's emoji you click on it
anyone got any ideas? or did it ?
Im not sure, i'll try that
trying to
map()through<g>.emojisto display in an embed, but I'ld like tojoin()them with their link so whenever you want to get the guild's emoji you click on it
@valid holly show your map code
isnt that map kinda useless right now
@digital ibex send host url
Hey
host url?
How i Can find if user is on desktop
@digital prism which lib
This
message.member.presence.clientStatus.desktop?
@valid holly which part are you having trouble with? adding the link to the map or obtaining the link in the first place
Host: delta.deltabot.tech
are you familiar with template strings
fields content then will have an hyperlink like link1 link2
I'ld like to assign link1 to emoji1 etc.
Yes, I know template literals allow variables in strings
Is there anything else to it ?
Ping, it would be port 22 right?
yes @digital ibex
Okay
`${function()}`
Now
you want the urls in a different field?
How do i create a folder?
mkdir somename
dir lost?
hey hey
?
sudo mkdir prjectname
sudo mkdir lost ?
Allright
@valid holly is the format you want like
💩 example.com
or a clickable emoji
New site
Yep tried joining them but that joins all the emoji's url
And use sftp protocol
What do i name it?
Alo I'm slicing 20 emojis from the collection as I don't want to display more than 20
Well tried
Actually tried gimme a sec
@zenith orchid what do i name it?
Ping?
Yes?
Woah your username is ping?
Oh good
What do i name the new site?
thats invalid, you need to wrap a single emoji and have only its link
oh, you cant change it
`[${guild.emojis.map(e => e).slice(0, 20).join(" ")}](${guild.emojis.map(e => e.url).slice(0, 20).join(" ")})`
Oh..
should I make an array and iterate through that ?

@digital ibex no
oh
Protocol is sftp
@valid holly
Because you have a ssh key.
map(emoji => `${emoji} ${emoji.url}`).join("\n")
Port 22
SFTP requires 22
That returns emojis correct but links would be
link1
link2
link3
so, do i just connect now?
I'll test and come back
https://discordapp.com/channels/264445053596991498/272764566411149314/680053771870797895 is right and just connect now
Thanks for the insight @bitter sundial @summer torrent
ping?
Yes
Do i click connect now?
why don't you use mobax ?
Ok @digital ibex
Ok
Idk desu
For you
Yes
thats ft somehting
Connect now
Show lost folder.
Okay
Does "Content-Type": "application/json" need to be specified in the Authorization header for posting to the API?
or is the authorization token the only thing required
I prefer project name.
Upload files on this folder
No
@zenith orchid 🥣
@digital ibex
hily shit
Use diferent folders.
holy shit
XD
SSH Secure Shell home page, maintained by SSH protocol inventor Tatu Ylonen. SSH clients, servers, tutorials, how-tos.
can i cancel it?
bro, wtf im going to be here for hours
HHAHAH
im cancelling it
!
oh, wait im not
Does rsync recursively overwrite folders and files over ssh ?
what happens if node modules are in?
what happens if node modules are in?
nothing just use the host to get the package
is there any way for me to cancel this please
yeah don't use filezilla
This is a good one for windows
@digital ibex click queue tab
~ 1k / ~ 6.5k
*right click
Also don't send host / usernames here
https://nmw03.is-inside.me/D6lAH43I.png
right click here
i right clicked
show result
nothings happening when i click on queued files
oh shit
it worked, i clicked on the thing above
yes
ok, the commands are on there
do you use node.js?
yes
type node -v to console
try in ur vscode terminal
in your vps console @digital ibex
pm2 start index.js
PM2 will help you manage and keep your application online
cd <your bot folder name>
okay
and retry
Does anyone know why this doesn't work (as in top.gg doesn't update my server count when I send this):
dbltoken = "[REDACTED]"
servers = {'server_count': util.get_server_count()}
headers = {"Authorization": dbltoken, "Content-Type": "application/json"}
async with aiohttp.ClientSession() as session:
async with session.post(url="https://top.gg/api/bots/496480755728384002/stats", data=json.dumps(servers), headers=json.dumps(headers)):
await util.say(ctx.channel, "Done!")
This doesn't give me any error, so I have no clue what the problem is. This is written in Python 3.5.2, and dblpy requires 3.5.3+ to install so I can't use the library.
@compact mauve #topgg-api 👀
which one?
if you have a package.json you only need to do npm i
If you specify all ur bot packages in package.json u can just do npm install
^
oh i didnt know that
Btw @bitter sundial @summer torrent fixed it <3
function emojiSize() {
let x;
if(message.guild.emojis.size === 0) x = "N/A";
else x = message.guild.emojis.map(e => `[${e}](${e.url})`).slice(0, 20).join(" ");
return x;
}
👍
I should put alternate text with "Click me to Download" for people to know
good idea
RangeError: RichEmbed field values may not exceed 1024 characters.

Need to slice less now
yes
fuck
generate second embed
next task would be getting the emoji id from a message object
to get “download link” for external emojis that my client has no acces to
need to use regex I guess ?
has someone here a Digitalocean Database cluster and is able to connect to it with js? Ive got node networking errors (ETIMEDOUT)
2|xxx | at new ShardingManager (/root/node_modules/discord.js/src/sharding/ShardingManager.js:39:22)
2|xxx | at Object.<anonymous> (/root/xxx/sharder.js:2:17)
2|xxx | at Module._compile (internal/modules/cjs/loader.js:1144:30)
2|xxx | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
2|xxx | at Module.load (internal/modules/cjs/loader.js:993:32)
2|xxx | at Function.Module._load (internal/modules/cjs/loader.js:892:14)
2|xxx | at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:27:21)
2|xxx | at Module._compile (internal/modules/cjs/loader.js:1144:30)
2|xxx | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10) {
2|xxx | errno: -2,
2|xxx | syscall: 'stat',
2|xxx | code: 'ENOENT',
2|xxx | path: '/root/index.js'
2|xxx | }```
What is error
Well seeing as that's not the entire stack trace
Mean
show full error
@earnest phoenix actual error is above
It's full
The error should be on top of stack trace

Try routing output to a log
With >
command to run bot > logfile.log
then just look at the end of the log with tail logfile.log -n 50 or someth
🔭
just do pm2 logs xxx --lines=100 to view more logs
but ENOENT means file not found
looking at that partial stack trace i can see your directories are all messed up
your files should be in /root/xxx/ but the log shows /root/index.js and /root/node_modules
@earnest phoenix, what app is that?
Terminus
What we can do with this app?
welcome
It connects to your PC
What
i dont know js but i see "not a directory"
doesnt node load a directory? not a file?
It works fine on my local machine, not on the vm though
why your index js file is in the commands folder?
Hi
how do i restart it? So, I put it out of my commands folder and how do i restart?
pm2 restart?
pm2 restart index.js
Ah
Ok
wow
It works. Thank you all guys :)
@summer torrent @zenith orchid @valid holly Thank you guys :)
np
Np
next task would be getting the emoji id from a message object
@valid holly try Discord.Util.parseEmoji()
@solemn quartz post your question
pm2 start differentbot.js
@digital ibex no
create second folder for your second bot
@solemn quartz post your question
@mossy vine Im Doing A Mute Command On My Bot
Btw wait a sec and ill send u a pic then ill explain
@mossy vine
ask
I did this:
case 'Mute':
const Muted = message.mentions.members.first();
if(!message.author.roles.find(r => r.name === "Super Bot Master")) return message.reply('You Dont Have Perms To Do This.')
if(!message.guild.roles.find(r => r.naem === "Muted")) return message.reply('I Didnt Find The Role, Pls Make A Role Called "Muted" and set -read messages and see voice channels-on and -send messages-off')
message.reply('I Succesfully Muted That Player!')
Muted.addRole("Muted")
break;
But when i do Muted.addRole("Muted") It Doesnt work
addRole takes a role object or a snowflake (id)
So How Do I Do it?
are you on d.js stable or master
btw. setting -read messages is a bad idea if servers use channel lockouts
like if you have to have a role to see a channel
eh same shit anyways
- takes precedence over -
But when i do Muted.addRole("Muted") It Doesnt work
@solemn quartz addRole(message.guild.roles.find(a => a.name === "Muted"))
i mean
they are fetching it once already in the if statement
why not store it in a variable at that point
"message.author.roles.find"
"message.author.roles.find"
@summer torrent If i would do this i would mute the one who did the message xd
im having trouble sending the files over without the node modules
user object has not roles property
i forgot how i was meant to do it NMW03
everything apart from node modules
also shouldnt you put the message.reply, after the muted.addrole? that way if addrole throws an exception it doesnt say it muted them?
cuz rn, regardless if they actually get the role, it always says "muted"
@solemn quartz addRole(message.guild.roles.find(a => a.name === "Muted"))
@summer torrent IM trying to do this
even if it doesnt leave the function, it still should be after
"message.author.roles.find"
@solemn quartz replace "author" with "member"
case 'Mute':
const Muted = message.mentions.members.first();
if(!message.author.roles.find(r => r.name === "Super Bot Master")) return message.reply('You Dont Have Perms To Do This.')
if(!message.guild.roles.find(r => r.naem === "Muted")) return message.reply('I Didnt Find The Role, Pls Make A Role Called "Muted" and set -read messages and see voice channels-on and -send messages-off')
message.reply('I Succesfully Muted That Player!')
Muted.addRole("Muted")
break;
@solemn quartz Copy paste this with edit
https://nmw03.is-inside.me/1wK3N4DR.png
@summer torrent Not That
That is for the one who mutes
cuz it checks if he has the role to do the mute
case 'Mute':
const Muted = message.mentions.members.first();
const muterole = message.guild.roles.find(r => r.name === "Muted")
if(!message.member.roles.find(r => r.name === "Super Bot Master")) return message.reply('You Dont Have Perms To Do This.')
if(!muterole) return message.reply('I Didnt Find The Role, Pls Make A Role Called "Muted" and set -read messages and see voice channels-on and -send messages-off')
message.reply('I Succesfully Muted That Player!')
Muted.addRole(muterole)
break;```
user object has not roles property
message author is a User object
you dont want any r/softwaregore stuff like "task failed successfully" ;P
.-.
huh?
huh
huhuh
Am Confused
Testing themute comand
Yayyyyyyyyyyyyy
It worksssssssss
Yaaaaaaaaaa
Thx @summer torrent @earnest phoenix
nice :)

So i did kick and ban lonely ; ( and mute with you : D so i only need to do the warn command now
or u can disable it in settings
ye but i can use bth ways
Idk If i need to do a simple warn or a variable warn
The simple is just that sends an embed in DM who says who warned you and why
The variable is that like if u got 5 warns u get kicked
personally, i prefer being able to set that up myself
store to a db
quick.db is good for small bots
?
So What Warn Should I Do For U Guys?
I Think that i should do the simple and when i will be more good i will do automod and do that
@summer torrent
@earnest phoenix
-bots @summer torrent
personally, i would add a configurable automod
more like nadeko
store to a db
?
nadeko is another discord bot
IK
wow
just
I personally like mee6 and dyno more of that
something you can customize for each server
yea but mee6 and dyno are multipurpose and i hate that
If I Would Do That It Will take me months
not really
just store a punishments list for each server, and check people's warnings each time they get warned
if they have say 2, and 2 is kick, then they get kicked
And first of doing auto-mod i would like to do a currency system
Can U Accept Frnd Req
So We Can Talk When We Want
eh, if its for coding advice, you're better off finding someone that knows javascript
I use python, and as such, I am mostly useless when it comes to js
mm bots
gl
?
good luck
ty
Anyone know the Approximate global rate limit for webhooks?
thats a thing?
yes?
only one way to find out xD
altho might wait till a new news article comes out so i dont resend the same news article for the 3rd time
already restarted the backend once
this.member.id(executorID);
Given error on console
Unhandled promise rejection: TypeError: this.member.id is not a function
broken promises are the worst kind ):
so i recently got a raspberry pi and i was wondering if someone else maybe knows if i can host my bot myself easier through using that
how do i get node.js on meh raspberry
broken promises are the worst kind ):
Do you know how can I fix it?
and no i dont
i use python
Uf
legendary, thank you
Hi people my community are looking into having our own bot in our server and I was wondering if there are any docs that are a must read. We have a bot programmed in our server atm but we are mainly wondering how to host it. Any pointers?
depends how much you're willing to spend
raspberry pi costs like 30 usd. if you have a spare laptop, you could use that, thats what i do
free hosting is pretty much trash
@maiden moss that help ?
You can spend like 3-5 dollars a month for a cheap vps
if the bot doesnt do much, using something like glitch/heroku will be more than enough
just be aware of its limitations
alternatively, google and amazon offer free vps for 12 months
which is more than enough time to kick start a project
"free"
not free
;p
the 300 dollars doesn't even last you for a year if you have a heavier bot aka need a stronger machine
cough or a mc server
xD
yes
i lasted 4 months
but OP did say it was only for a single server
samee and the machines still aren't powerful enough
so they might be able to get away with using the free tier
aka f1-micro
mainly because java is retarded and mojang devs are autistic but ignoring that an 8 gig ram machine with 4 virtual cpus crashed every week or so
Well no
Wait how did you get 4 vcpus
You can only get 2 then you go to normal ones
you can use custom builds
i also didn't use micro
But I thogut it went 1 vcpu 2 vcpu 1 CPU etc
Cuz 1 vcpu is 1/4 cpu
Ndjrjdn
I ran my Mc server on a 2cpu 2gb machine
tbf if youre the person to spend $300 a year or more on Google's hosting you might aswell either use a decent vps or just buy a server
Someone doesn't like gcp
my school just upgraded their main servers which are moist
it isn't spending
it's
exploiting
~
^
google gives you free 300 dollars to use on their cloud service
Anyone know what gae is for?
repeatedly do that process and you'll be exploiting their services in no time
No
Can't
you can even with the new system
They need credit info tho?
yeah
but they don't check for dupe cards
O
they only check for cards which have been used an enormous amount of time
my bot was on google for a year and it used like 10$ of the 300
now im using the account for my api, which uses so little resources (for now) that it costs like 0.01$ monthly
Depends on the bot
how big was your bot
it was on about 200 servers when i moved it there, and about 1600 servers when i moved it to a better vps
What does it do tho
image generation
Hm
the only thing that was going over google's free usage limits was the bandwidth
which google only allows 1gb/month free, which is nothing for a discord bot lol
but with guild subscriptions and intents its not that much of an issue anymore
5tb lmao
Same
my server was at about 400gb/month due to some weird ass spikes
Spikes or mountains
wait what host do you use now?
but after i finish moving all my bots to my intents framework, the monthly bandwidth should fall back to like < 10gb/month
im on galaxygate
does unmetered bandwidth mean i can use as much as i want?
yup
oh ok cool
thats one of the reasons i went for galaxygate
what plan
3$ one
understandable







