#development
1 messages · Page 1456 of 1
is it because the interval is just
updateCount();
because in updateCount();, count is set to 1 once again
thats probs the reason
maybe maybe not
where is it doing that in updateCount
oh wait
it isnt nvm its outside
well that dont make sense
also its every 5 mins
which is weird
2|stats | FileNotFoundError: [Errno 2] No such file or directory: ''```
do you have another interval?
no
do you have any other events
uhh no
so this isnt a bot, just this right?
yes
its just a webhook thing
and in index.js its the stuff that i sent
uhh yea still happening
every 5 mins
which is strange
it seems like count reset every 5 min??
anyone know how to seperate words in a db since logging it as a array does nothing
do you have something logging on startup
so you can see when it restarts
uh yes something pops up one second
i used this for quick.db @main trench
let money = db.all().filter(data => data.ID.startsWith(`money`)).sort((a, b) => b.data - a.data)```
Timeout {
_idleTimeout: 20000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 872,
_onTimeout: [Function],
_timerArgs: undefined,
_repeat: 20000,
_destroyed: false,
[Symbol(refed)]: true,
[Symbol(asyncId)]: 3,
[Symbol(triggerId)]: 1```
this prints
on start up
that may work but im trying to do something like g!bl add "word" and it seperates each word added
oh
then not too sure abt that
uh is the word in an array?
if so doesnt it automatically store like "a", "b"
i just need to get it to separate each word and it will work
doesnt seem like it no
oof
below your let count = 1 line add a console.log("count init");
im doing db.push i guess i could try db.add to see if that works idk
json can handle arrays
count init
Timeout {
_idleTimeout: 20000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 414,
_onTimeout: [Function],
_timerArgs: undefined,
_repeat: 20000,
_destroyed: false,
[Symbol(refed)]: true,
[Symbol(asyncId)]: 6,
[Symbol(triggerId)]: 1```
it prints
so now we wait?
yeah
first one it will always print that, since count was set to 1 on startupp
db.add throws an error nice ```let word = [${args[1]}]
db.push(`wordsdb_${message.guild.id}`, word)``` this is my current code
if i have one word in the db it works fine but once i add 2 it breaks
uh i dont think that would work
because is it not just replacing the word
everytime
i dont want it to replace
oh yeah db.push doesnt do that nvm
i want it to have multiple words each separated so a mod can blacklist a lot of words
that should work
its either how im logging it or how im fetching it
```let words = db.fetch(wordsdb_${message.guild.id})
let badlink = new MessageEmbed()
.setDescription(`You cannot say bad words in **${message.guild.name}**`)
.setColor("RED")
if(message.content.toLowerCase().includes(words)) {
message.delete()
message.author.send(badlink);
}``` this is how i fetch it
quick.db isnt the best for stuff like this
6|stats | KeyError: 0```
well
ye so i think it breaks the list
actually its not the best for anything
process = subprocess.Popen(['pm2', 'jlist'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
stdout, stderr = process.communicate()
list1 = stdout#.decode("utf-8")
print(list1)
#list1 = json.loads(list1)
if list1:
list1 = json.loads(list1)
else:
list1 = {}```
this is basically it
mongo would require me to change everything which isn't something i want to do right now
weird, its been 5 min (should post the same thing again) but its not posting it
and i would run into this same situation
ig console.log did something?
oh.. im so dumb
i think its bc uptime pings it every 5 mins
is that da reason
is it refreshing all your variables?
uh so basically
repl.it projects stay up every 30 mins
so i have uptime to ping it every 5 mins
ping it as in restart the index.js
so i think thats probably
the exact reason
why its happening
😔
i mean i dont think pinging does anything
it just starts the project
uhhh so i cant send the entire json
yea but this is just a webhook
but it works when i do python3
i think it errors
yeah dont do that idk what the problem is tho
but it doesnt log it
imma just assume there is no way to get this working with quick.db 
there probably is
did it log the init when it pinged it?
the issue is separating the words
any1 got ideas?
you could just make it into json @main trench
like its a bad way but its the only way i can think of
i guess but i want mods to be able to add their own words
i can't find proper docs for canvas npm ._.
yeah
you would get the list in JSON form, load it, add the word, stringify it, and then push to your DB
I THINK
[ [ 'yes' ] ] interesting
this is what gets logged
ok so adding 2 words brings this up [ 'no', 'yes' ]
@hollow sedge ok so this is what i think
it returns it in json form
but i have to make it json
yes
ye list1 = json.loads(list1) works
but when i try it with pm2 it bugs out
with python3 run file it just prob also does
but it doesnt show
@hollow sedge ok so how should i format it into JSON then?
with node.js i think its JSON.stringify(blacklist)
and JSON.parse(json_blacklist) to read it
aight
ill put this in main.js for now to see what happens
6|stats | if "arch_cluster" in list1[i]["name"]:
6|stats | KeyError: 0
6|stats | Traceback (most recent call last):
6|stats | File "/root/botstats.py", line 79, in <module>
6|stats | updatestats()
6|stats | File "/root/botstats.py", line 21, in updatestats
6|stats | list1 = json.loads(list1)
6|stats | File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
6|stats | return _default_decoder.decode(s)
6|stats | File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
6|stats | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
6|stats | File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
6|stats | raise JSONDecodeError("Expecting value", s, err.value) from None
6|stats | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)```
thiis is error
i feel the json is just fucked up and doesnt even exist lmao
so is the main cause the pinging?
because i went out of my repl now its sending every 5 mins
and i dont really know any other alternatives to fixing it
ReferenceError: json_words is not defined interesting
well, it would be strange if it was rebooting it just because of the ping. especially since repl doesnt seem to restart peoples bots when it gets a ping
but the thing is
it sends every 5 mins
the same thing
if no update
so its most likely cause of uptime
since if i stay on the website, it doesnt send it
if i exit, every 5 mins it starts sending again
which is annoying
does uptime not send if your on the page?
@hollow sedge json failed it logged the word 4 times
so your uptime is letting it go offline?
uh no
can you share your code
i dont think it pings when im on the website
maybe it does
well regardless of that, it still sends every 5 mins
updateCount()
}, 20000);``` should i put this in the async function?
maybe dats the reason
in what async function
the updateCount one
that would just make a new interval every time it runs
o
can someone please help me?
since i have never used repl, i dont know how it works, so i dont know the most effective solution.
Potentially repl runs all the top level code on every web request? @sterile lantern
wat?
list123.strip("[] ")
you could test that by acessing the same page your uptimer does and see if it sends the embed
o
let wordz = JSON.parse(json_words)``` this threw an error while ```let wordz = JSON.stringify(words)
let badlink = new MessageEmbed()
.setDescription(`You cannot say bad words in **${message.guild.name}**`)
.setColor("RED")
if(message.content.toLowerCase().includes(JSON.parse(wordz))) {
message.delete()
message.author.send(badlink);
}``` logged one word 4 times @hollow sedge
wait no
i meant to put it into your db do JSON.stringify(words) and to read it from your db to JSON.parse(json_words_from_db)
it seems quick.db automatically logs things as an array as shown here [ 'yes', 'no' ]
uh...i...have no words
wait lemme figure this out lmao
@sterile lantern it seems it did run your code however, "count init" the next cycle it should have send the embed right?
@hollow sedge the only way to get this to work is to turn [ 'yes', 'no' ] into [ 'yes' ], [ 'no' ] somehow
wdym?
i think this is the old count init
yea old console log
yes
uptime is going to repl.co
to ping the project
and when you go that link
that pops up
why would your repl page send the console?
i have no clue
How do you do the vote requirement command?
They will need to vote before using the command
yea it still posts
use a db and on a vote, store the users id. for the cmd, check if the users id is stored in the db, if not, send error msg
after creating a channel with guilds.channels.create how do I get the ID of it
does that function not return a promise of a channel or something?
yea
ok yes, i use guilds.channels.create("Commander Setup")
what does that return
but Im not sure how to get the ID afterwards
it doesnt return anything, it just makes the channel like its supposed to
um k
Hi, is anyone here good with sharding?
For some reason my message event duplicates when using sharding
lib?
Discord.js
cries in unverified bot
nop
My old bot was verified but only in like700 servers and didn’t require sharding
(I got my message the other day :))
and now?
dang
discord won't even accept my id or passport
and nobody responds on the support page either
drivers license worked for me
ive been having issues with their verification too, its taken 2 weeks for them to just escalate it to the dev team and ive still gotten no response from them, meanwhile my bot is siting at 100 guilds unable to be added to any more
aint got one
yea thats what they last told me
"we'll escalate this ticket to the dev team"
well its been 18+ days
so the issue is most likely that its being rerunned every 5 mins
wait actually 1 month
dang, sorry bud
so im not exactly sure how to make it so it doesnt do that
yea sucks not being eighteen
you dont have to be 18
they take learners permits too (thats technically what I used)
depends on where they live
cant you also give your school ID
here its kinda strict
i sent my citizen id thing
obviously covering my face
that might be your issue...
yeah
but they should at least tell me
they kinda need to see your face
im not comfortable with sending an image of my face to some company out there
its kind of a given that you need to send your ID without covering any part of it
its not "some company"
its discord
they dont store it
well yea
its not stored
nah messages are another thing lmao
messages can easily be leaked
not really
private ones too
but they're not
yeah
yea
same thing goes for the id
only one person can see it
then its probably removed
or gone from wherever it was
since i dont really know whats going on with it.
the other option is to store the member count in a db, then get it every loop.
hmph,
there is a solution out there without doing that, i just dont know how repl works.
🤷♂️
dang
if i knew how repl works, id be able to help.
What is the code of voting requirements command?
woo just suggested that
who needs repl help
ill do it soon
Because im dumb at the dbl api thingy
me
wassup
const axios = require('axios');
const discord = require("discord.js")
let GROUP_ID = groupidhere
let GOAL = 27000
let count = 1
let wid = process.env.wid
let wtoken = process.env.wtoken
let webhook = new discord.WebhookClient(wid, wtoken)
async function updateCount() {
let response = await axios.get(`https://groups.roblox.com/v1/groups/${GROUP_ID}/`)
let response_count = response.data.memberCount
//console.log("got request")
if (count < response_count) {
console.log(response_count, count)
const embed = new Discord.MessageEmbed()
.setColor("#FFDAB9")
.setThumbnail('this is a joke')
.setAuthor('kewlg')
.addFields(
{ name: 'Current Count:', value: response_count, inline: true },
{ name: 'Members left till 27k:', value: GOAL - response_count, inline: true },
// { name: 'Goal', value: GOAL, inline: true },
)
.setFooter("group Member Counter")
.setTimestamp()
webhook.send(embed).catch(async err => {
console.log(chalk.red('Issue with posting in: ' + err));
});
if (count == 0) {
count = response_count
return;
}
count = response_count
}
}
setInterval(() => {
updateCount()
}, 20000);```
this sends
ah
every 5 mins
even if
no member joined/left
so basically the same embed every 5 mins
unless someone joins
thats not a repl problem
its sending because count is resetting.
thats just code
count is resetting bc i think its being rerun by repl
i thought you meant you needed packages or something lol
Ello```
whoa several people are typing
repl only reruns if your connection gets lost
So you've never used zoom, teams, Google meet, discord video chat?
How can I make it so my bot can get the role id by the author mentioning it?
well ya got a point
message.mentions.first I believe
well screw it im gonna make another attempt 
stop being paranoid, you lost your privacy the moment you stepped on surface internet lol
They all got your face and your voice, so do Facebook if you use watscrap
yea true
message.mentions.members.first()
if you are using discord.js v12
lmao imagine some fbi agents actually watching us on camera
I've actually seen a lot of people unusually paranoid here. Maybe it's something from other countries but idk why people think like that
how boring must that job be
wdym top channel
the first channel in a category?
I need help with sharding oof
My bot seems to duplicate the message event when I use sharding.
It doesn’t happen if I don’t use sharding
Meh, there’s a slightly difference between basic privacy concerns and sharing your whole life on the internet like lots of people do even with noticing
That only works for member
I need it to get the role ID
well maybe im just some semi-paranoid guy
you mean a mentioned role?
ahh gotcha
Nah... I’m not gonna upload any personal data, too never have and never will
Well..cool but sometimes it's necessary
Rip my bot ig for now
No one wants to share personal data
thats message.mentions.roles
bruh i thought you had sent an actual embed for a sec lmao
forgot about the opengraph thing
Ho would I get its actual id tho
How*
That would get me <@&id>
message.mentions.roles.first().id or something
Aye not speaking about necessary data to use specific services
But for example I never used FB, Whatsapp, Google services etc.
Therefore I’ve blocked any related existing service of these network wide (at least in my network)
Yep works, thanks.
no problem
Not to mention all the tracking services etc.
yeee
Just makes your life better...
ooferino i thought you were meaning users cached in the client
bruh ive had gps on for like 5 days now without noticing
Hehe good joke
is it tho
i mean
i imagine the devs trying to to the best they can and they make this really unstable thing lmao
and just put "100% secure with end to end encryption" praying for no one to attack em
That's why it's so popular
well yea
well probably
Nope it’s not and since Snowden we know it’s not only any related FB services agencies can listen to
Then you might need to google for your so-called end-to-end encryption and how it doesn’t exist because of some pressure by governments
Mostly USA ofc
Please
Like the US is going to pressure a huge company like facebook worth billions
Each big company is forced to open their software for specific purposes
Into doing that
Facebook, Google, Amazon, Apple, etc.
I mean if you're going to question if that's secure, you might as well question whether or not the moon landing is real
Well secure is a different story
Yes, they will. Have you heard of the anti-trust investigations?
The EU is doing the same thing.
Secure for most of the attackers trying to steal your data, yeah
So..the government is investigating facebook..for something they told them to do?
No that's obviously not the case
Any company has backdoors in their software to not be banned by the US government
That’s no secret anymore in 2020
Do you have a reputable source on that
Yeah like millions of leaked documents anywhere around the internet even before Snowden
I mean that facebook has a backdoor
I wonder how old you are to believe the companies keep your data privately
Data isn't the same as encrypted messages
Each message you sent on any platform, each picture you sent, anything is stored an searchable by keywords for example in PRISON, which is only one common software used by NSA for example
Ok karen
We’re talking about any service you’re sharing text or pictures. What else you do on the internet?
watch memes
well I'm specifically referring to whatsapp as you are saying that facebook has built a backdoor into it
wut
find a beach with sand and throw it there
Aye each message you sent is being saved on the facebook/whatsapp servers before transmitting to the recipient and "officially" deleted after an amount of time
But it’s not
Of course not
i didn't understand ur question
payton?
who is payton
whats payton
don't you mean python
whats payton
Ouch
if EA made a programming language
LOL
and i need a villa but not everyone gets what they want in life
language
normal bot?
give context
if you wanna make a bot you can check out tutorials on yt
ew
avoid yt
here we go again
what???
🗿
there should be an iq test before entering this channel
you want to pay someone to make you a bot?
Have fun with this guys
https://discord.com/developers/docs/interactions/slash-commands
(╯°□°)╯︵ ┻━┻
||||
uh huh
||idk||
(╯°□°)╯︵ ┻━┻
o
this isnt the channel to hire devs, if you want to hire a dev, check fiverr
Avoid yt
:)
just use a public bot instead?
There are a million bots out there already, use one
^^^^
learn a programming language first
and i want a million dollars
F
then you won't get your custom logo and stats
Lol
Following this channel physically hurts sometimes
Dude whats your problem
Start here https://discord.com/developers/applications
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Sand tutorials for payton pls
Wait yes I retract what i said
start here
Wait what?
they're undoubtedly going to fail at their goal, so why not use a public bot, there are already hundreds of thousands out there that do the same thing
yea use like mee6 or dyno
oversaturated market
lmao
i mean
you won't be missed
@earnest phoenix WAIT
but hostings all your problem
I'll do it
oh if only they knew
pepega
lmfao
yikes
lol
and that's how you become a bitch to capitalism
@earnest phoenix if you learn Python I'll do it for free
but hosting it would be your problem
You da host
you da host
😭
You should let Yali do it by himself so he actually learns something
he does not want to
I think he should 🙂
well yea
ok
you need to put some effort
they do not differentiate programming languages from communication languages, do you really think they're able to do that
start by learning the basics of the programming language you want
really?
You know what Yali? U da host
i thought what with enough effort pretty much anyone can code
PolyMatter has an amazing video on this
First 500 people will get 2 months of Skillshare free: https://skl.sh/polymatter4
Patreon: https://patreon.com/polymatter
Twitter: https://twitter.com/polymatters
Reddit: https://reddit.com/r/PolyMatter
Discord: https://discord.gg/polymatter
It’s become popular to encourage anyone and everyone to code. But there simply won’t be unlimited deman...
Oh no he sent me a friend request
bruh same
programming requires being able to logically think and resolve problems, and some people just can't do that
It's not a tutorial
that isn't a tutorial lol
Read the title
Not everybody should code, but everyone can code (loosely everyone).
hmmm
but not everyone can program
how old are you? just curious
import discord
from discord.ext import commands
intents = discord.Intents.all()
bot = commands.Bot(command_prefix="!", intents=intents)
@bot.event
async def on_ready():
print("Bot ready lol")
@bot.event
async def on_message(message):
if message.content == "hello":
await message.channel.send("hi")
@bot.command()
async def hello(ctx):
await ctx.send("Hello")
bot.run("TOKEN")``` @earnest phoenix you want code i give you code
Lol
lmfao
I dunno, depends how driven you are. There are a lot of mountains/valleys while learning to program/code.
@earnest phoenix legit though, how old are you?
The code that you can get from the discord py docs in a second
would be perfect to learn
aight, quite young to code
help mongodb compass is killing my computer's ram
Nah
im 14
14 is fine to get started
same
lmfaoooo
14 year old gang rise
it NOT WORK!!!
Oh god
😭
he is 100% going to mess up on the token at least
If he even gets to running the code
Which is highly unlikely
I don't think he will get far without knowing the standard library. He doesn't have his toolbelt :(.
LMFAO
buy it
giveaways
And we do?
^^^
we have money to give to you?
I mean I'll take half of that
0/0= undefined so I mean
That must be something
Wait
It's 0/2 im dumb
Sweet dreams
Lol
bye
I'm afraid of watching this video and finding that I shouldn't 👀
am i high or did the api not used to return public flags via REST?
that's so weird
huh
confusion
Really weird is a transparent shell window
...
zsh
I think they do. check this site: https://discord.id
#development message @boreal iron
got it
that's for discord :p
Oh
win terminal is so good
At least it’s a real sub system now and not just cosmetic anymore
this
WSL is hot imo
¯_(ツ)_/¯
any advanced mongoose user?
not exactly advanced, but i know mongoose
It just seems like it could change the experience as all the info for a command would be right there
yes
well i want to do something like in sql but i don't know if i can
i need to set the coins basing the actual coins + the coinss i will add in this case i want to do this
coins = coins-lvl*50 WHERE userID = ?
and i tried to do the same in mongo but idk if i can without using the data from another query because if i do this coins are now NaN
Check out $inc: https://docs.mongodb.com/manual/reference/operator/update/inc/
$set: {field: data[field] - 10} inb4
What if you don't have the data
yeah i tried that but i want to use the data from the own document
//like
$set{
coins: /*equals to actual coins*/ "$coins" -/*minus the actual document level*/ "$lvl" * 50
}
Then you're fucked
the document have all this values
For complex operations like that I would just grab the value and update it
Like I'm sure there's a way to do it
But it probably isn't worth it
At least SQL based engines can use the column name as value in your query, but that won’t help you 
list1 = json.loads(list124)
7|mon | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)``` any ideas anyone? py, linux, on pm2 (running python3 works fine)
Shouldn't you have the column name tho?
yeah that is what i was using
Is there a reason why you switched to mongo lol
huh Wut? Don’t get that 
I don't understand what you're saying either lol
huh Wut? Don’t get that 
the reason sql is too slow
IK
huh Wut? Don’t get that 
AHH
Wait what
Aww god damn Discord mobile
SQL is faster than mongo
Can’t handle bad connections
Oh lol
"MongoDB supports JSON query language along with SQL but RDBMS supports SQL query language only. ... MongoDB is almost 100 times faster than traditional database system like RDBMS, which is slower in comparison with the NoSQL databases."
i guess its kinda just preference
so don't start a fight lmao
but well if is not another way to do this i just go to the simple way
Mongo is definitely not 100 times faster than SQL
yeah well maybe not 100x
That's not even what they're saying tho
that would be lightspeed bruh
hmm
But they don't specifically say SQL
And use case
yea
@hollow sedge still didn’t get what u said above or I missed ur answer due a short mobile disconnect
I don't get what you were saying here
you can't use attachments in setImage. Use .attachFiles
Im talking about the general possibility to use columns as values in your query, for example count = count + x, or table.col1 = table.col2 * 100
.attachFiles(attachment)
.setImage('attachment://approve.png')
Which doesn’t require to fetch the value before editing it relatively to the current value saved in the database
Ah I see
Again, I think it's possible with MongoDB it would just take a few more operators
Love how descriptive you are
lmfao yes

Rainbow role doesn't mean anything to us
it is against to ToS
yo i remembered the mario kart rainbow road

Lol
i think he want to change the color of a role every x seconds
That thing was so frustrating
so whe i set that role that nicname cahnge colour its against tos?
It will pretty much be interpreted as spam, which it obviously is
Speaking about a rainbow effect requires a high frequently change
that doesn't sound like a great idea
@mellow kelp could you help me find this bug that won't write data to the .poggers?
that's what that does lol
i didnt get it
they create a "window" outside of your SSH session
@drifting wedge axtually
Pm2 support python
pm2 is bloat
don't use it
pm2 works
literally just use tmux or screen to create a new session
jesus fucking christ
literally just install screen
type in screen
enter
and you're done
you've created a session outside of your SSH session
i prefer tmux but it's more complicated
systemctl 
so you should probably just go for screen
is there a way to change the bots role
chances are your distro came with screen preinstalled
like the one that is automatically generated by it
gib full step by step guide
oh
systemctl is quite a pain to set up ngl
uhh do i pip screen>
Is screen persistent between reboots?
just use PM2
it's a linux package lol
no
why would you use pm2 though that's beyond me
Slash commands not in any lib rn
Which is sed
it's so much bloat for such a simple task
so i just run it?
because https://pm2.io/
Well, if it's not persistent, then I'm not using it
I'm not going to be constantly restarting my shit over and over 
i dont mind lmao
why would you?
why do you need screen?
time
@slender thistle are you trying to code your bot while its live?
I don't need screen, I was just curious
I'm trying to use something that will run my process automatically even after machine reboots
PM2...
which systemctl already does for me
ok how do i systemctl?
So pm2 is persistent?
yes you can have startup
pm2 is
uhh is screen persistant?
@slender thistle just create a service with auto restart
screen -S "session name"
dont think so
there's so much stupid in this chat right now
kekw
personally attacked
Do nae rely on my explanations and use Google for this one kek
both tmux and screen are meant to create "windows" that are split from your SSH session and are meant to run even when your SSH session dies
screen is not persistent between restarts
tmux saves sessions every 15 minutes and is persistent
pm2 is just bloat
It'll help better since I've mostly copied everything from some website
I cba to move my stuff back to tmux I'm not gonna lie
Would you say systemctl is sufficient?
ok
i mean..couldnt you just run a script on startup if you really wanted that?
how use tmux
google it
systemctl is quite easy to manage tbf
there's also tmux resurrect
ooo
pm2 is absolute garbage
why would you use node for something that can be accomplished with native shell
Hey cry
im dumb af
there's a fuckton of tutorials online lol
How about I buy 5 separate machines and have 24/7 SSH sessions running bots on each
Holy shit
Who said it would be only one hoster
It's public now
But no lib has it
everyone has access to slash commands
tbf it's not that hard to implement it yourself
it's a bunch of nesting
👀
and you need a webserver to actually handle commands
now will all prefixes be /?
Imagine there would be a S behind the word hoster
bots don't have to use slash commands
Nah
This is just for slash commabds
Commands*
Oh great I'm fucking abusing those when I get a laptop
wdym
rip bot reviewers
Why
shoster?
lmao
when bots start integrating slash commands it's going to be annoying to differentiate between like 30 different help commands
I would call it fun - obviously not for the reviewers
New update is messed up
It won't ping a role along with text
do i just do tmux?
if i close it what happens>
take a guess
lmao
it stays alive
how do i delete it
you just kill-session the session
Why didn’t he want to use screen again?
Ow scrolled up and see... just because it’s not persistent
tmux doesn't auto save out of the box though iirc
Just creating a cronjob on system startup creating a screen session would have worked too
yes
Oh iOS doesn’t wanna add two - behind each other
is it really that hard to use google?
sucks to be you
i did look lmao
i open one
but i cant seem to like open one
i make a new one
but not open a current one
you're already in one when you open it
Latest shortcuts, quick reference, examples for tmux terminal multiplexer which runs on Linux, OS X, OpenBSD, FreeBSD, NetBSD, etc...
you're in the session that you just created
You sure need a webserver to handle the commands and a bot can't?
oh my fucking god
Using the command and open the session again
Guys does npm packages help in the thing
That slash commands
There are 2 npm packages for that so
Should I try
after getting the list of sessions
omg
What happend
imma just ask cry to stop responsing
huh? it just came out
cuz he;s gonna think im an idiot
But no lib has it
Probably some reserved name
so..how is it already out?
yes, after a user uses a slash command discord hits up your webserver (the url to which you've configured on the developers site) and sends the data
then you decide what to do with it
i mean that's still pretty quick
It’s like a window running in the background if you lock your Windows PC
i dont see anything for slash commands on npm
There is
you keep on asking the same thing over and over and over again when your question has been answered 3 times and you could've used google to answer your question yourself in just five fucking seconds
I DID GOOGLE IT
ik what npm is
how nice it is of google to outline the thing you need in a gigantic fucking box
you don't know how to use google properly
i do
The confusing part is this:
When a user uses a Slash Command, your app will receive an Interaction. Your app can receive an interaction in one of two ways:
- Via gateway event, INTERACTION_CREATE <docs>
- Via outgoing webhook
These two methods are mutually exclusive; you can only receive Interactions one of the two ways. The INTERACTION_CREATE gateway event will be handled by the library you are using, so we'll just cover outgoing webhooks.
In your application in the Developer Portal, there is a field on the main page called "Interactions Endpoint URL". If you want to receive Interactions via outgoing webhook, you can set your URL in this field.
i just dont know how to read properly
oh i had no idea about the event
huh
sec
what if you arent using a library 💀
mmlol
nice
the event still lacks documentation though
they documented this for library consumers
not for library developers
lol
that doesnt really make sense tho
if you're a library consumer wouldnt you read that library's docs
i dont know what their thought process was

