#development
1 messages ยท Page 1090 of 1
How do I make it into a module
sort of, he was explaining it but still I get 50% of that way I'm still learning as I said
im using discord.js and i have a command where i have it like two settings
one is for one webhook
another is for the other trigger
how i do that like make it detect stuff like
webhooksend (option) then text lol
im assuming your config is in the same folder as you index
Uhh, yes... ๐
./config.json
So I rename the file to /.config.json?
no
no
no
no
im assuming you are requiring it
./config.json
is the path to the file config.json
How do you get text from a promise?
erwin, sort of, he was explaining it but still I get 50% of that way I'm still learning as I said
@shy turret you await the promise?
Where do I put ./config.json to make it a correct path to config.json?
@fossil token you should read docs, not watch friend guides
i cant await for some reason even though i made it an async function
you can also .then a promise
if you cant use async
im using discord.js and i have a command where i have it like two settings
one is for one webhook
another is for the other trigger
how i do that like make it detect stuff like
webhooksend (option) then text lol
i will do! next time! so yea know i need to search for a fix
Basically this is my folder
divide them into args, grab the option, join the rest @clever garnet
doesnt need to be async
Thats all i have for config.json
it's giving me undefined
like how do i check if the arg is a specific thing
@sudden hedge in the index....
compare that arg to the specific thing

if(arg[#] === thing)
I never mentioned/called my config anywhere in the index-
oh i know why it doesnt work
the error says you do
thank you for ruining what i was trying to explain
uh


i was trying to teach him rather than spoonfeed it
the fastest solution doesnt always help them the most
what ./ means is kinda important
So @sudden hedge just add "./" in front of local files that arent in node_modules
lmao i tried getting him to locate where he was calling that from for the past 14 minutes
smh
feed vampires and they come back
sounds like a waste of everyone's time when the answer is simple...
its precisely because its that simple that you should know about it
need a good understanding of the basics
true
I mean does it really matter. Searching "file path" on Google gets you the same result
this isnt where you learn the basics
I mean, I'm still learning honestly :/
you need to know path resolveable, next time it might not be the easy same folder fix
he might need to search for something in another folder
right and i can explain paths in 1 minute if needed
no need for a 15 minute process of explanation
i still get lost with
../../path/file
he was taking 15 mins cuz he didnt even know where he called it
things get real quick
if(arg[#] === thing)
@solemn latch didnt work
said arg isnt defined
how i define arg
i would highly recommend this
args are typically defined as an array of each word
more specifically this https://discordjs.guide/creating-your-bot/#start-up-code-explained
@opal plank ive read every page
dont send me the starter guides
then you know how args are defined
i dont
its on the starter pages
@clever garnet then know js
its literally here
fine
more specifically https://learnxinyminutes.com/docs/javascript/ and a bash tutorial
lmao
yup
with explanation and examples
i still look at them
no need to be fussy about it
for diffrences between 11 and 12
its still very annoying when people send you a link to a guide
no need to be fussy about it
@opal plank huh?
not you rigi
o
its very annoying when people have answers to questions

Bruh who cares abt all that links @earnest phoenix @opal plank I use/recommend this https://www.codecademy.com/learn
its still very annoying when people send you a link to a guide
@clever garnet its annoying when people help you?
codecademy is a terrible way
id prefer bing over that
lmao
learn js first, once you do that, read docs. We send guides cuz they are more watered down documentation on how to do stuff
so its easier to pick up
though the proper way is indeed from the docs, not the guides
saddly docs dont have the answer to how to define args
its a great second or third
depends
web-based js is nothing like back-end js
I don't do web-based things so building a website is extremely pointless to me
Well, I used links and guides and I think this is correct?
indeed @sudden hedge
@amber fractal add 5 buttons, and thats it
here, fullstack dev
who needs fancy websites
fuckoff with that
text and buttons
that link says it all
Nope still same error
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module 'config.json'
Require stack:
- /Users/kamolkhon/Desktop/DiscordBot/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Module.require (internal/modules/cjs/loader.js:1025:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/Users/kamolkhon/Desktop/DiscordBot/index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/Users/kamolkhon/Desktop/DiscordBot/index.js' ]
}```
you didnt save it
Ah
Not to mention blind people will never see that shit, but they don't see any of your shitty shit.
i love that website
You dumbass. You thought you needed media queries to be responsive, but no. Responsive means that it responds to whatever motherfucking screensize it's viewed on. This site doesn't care if you're on an iMac or a motherfucking Tamagotchi.
good, we getting somewhere now
define message on the client event 'message'
i would highly recommend the guide btw
read that
otherwise you'll be coming back every 5 minutes

Cross-browser compatibility? Load this motherfucker in IE6. I fucking dare you.
lmao
- some German motherfucker```
why tf does it have google analytics
ah google analytics
ALL of it
too much weight
analytics failed
oh yeah it has script
im so dead
how do i close a messagecollector
it keeps showing me memory leak errors after a while
i have filter set with time:5000
i've got this code:
const WebSocket = await connectWebSocket(Constants.GATEWAY); and im getting this error:
error: Uncaught SyntaxError: Unexpected reserved word ???
im using deno in JS
WebSocket is reserved
googles no help :/
its saying its await
i've done it before, and its worked perfectly fine
https://developer.mozilla.org/en-US/docs/Web/API/WebSocket well it shouldnt
it's a reserved variable
Lol
any ideas, @amber fractal ?
can you show me the whole function?
lol
it works!!!
perhaps you wanted async connect()
yay
๐
yeah
with my messagecollectors after a while it just stops recognizing the messages
also...
do classes work differently in deno or something??
i've got this: this.token and it cant read property of token of undefined.. and i log JSON.stringify(this) and it logs this...
{ "token": "bob" }
worlds worst token coverup
thank
might as well regenerate that
you tried concealing something private with see-through plastic. You should re-generate it though, as that token is bound to your account (and if anything bad happens, who knows what could happen to you)
oh eah
the api page
Ok
the code is basically just: js export default class Client { constructor(token) { this.token = token } async connect() { try { // unrelated code console.log(JSON.stringify(this)); wSS.d.token = this.token; } catch (e) { console.log(e); return e; } } } if it helps
Thanks
How Check channel type nsfw?
so im making a bot, how do I make the bot send the same message and wait for response over and over again for a # of times
im using a while loop but it runs asynchronously and doesnt count variables properly
use promise or async await @halcyon ember
sounds like api abuse
anyone come #topgg-api
How i get profile message.mentions.users.first()
ok so I have a dynamic help command, but I have absolutely no idea how I'd embed it...
here's some pics of what it is so far:
https://i.imgur.com/xSJ0tnl.png
make an array from your commands with the aliases attached. then run a loop over it and create a field for every command.
or you work with the indexes from the array and make a new "page" for every command
happens sometimes
got in the last week about 80 new Servers
(insert ive got 300 new Servers yesterday guy here)
wow
yea but there is one downside. if you grow to fast you get flagged by Discord and need to wait for 250 Servers until you can apply for certification
i already did
applied
for verification
1595825645242 Ping Received
my bot logged this
so @lusty quest does this mean someone upvoted my bot?
if you added the webhook and the other stuff yes
and added a console.log that is like vote.user Ping Recived
const http = require('http');
const express = require('express');
const app = express();
var server = require('http').createServer(app);
app.get("/", (request, response) => {
console.log(Date.now() + " Ping Received");
response.sendStatus(200);
});```
oh nvm
it was for this
๐ญ
but
i am using app
for dbl
as on glitch we cannot use more than one port
rip
@lusty quest can u come #topgg-api
Dr.Summ knows
^yes i am that person so i coded bot so far so it is to play music, bot only keeps telling me i am not in vc
Even he is in a vc
code?
hastebin
share the code?
for(const file of commandFiles){
const command = require(`./commands/${file}`);
client.commands.set(command.name, command);
}
client.once('ready', () =>{
console.log('Creator is online!');
});
client.on('message', message => {
let args = message.content.substring(prefix.length).split(" ");
switch (args[0]){
case 'play':
function play(connection, message){
var server = servers[message.guild.id];
server.dispatcher = connection.playStream(ytdl(server.queue[0], {filter: "audioonly"}));
server.queue.shift();
server.dispatcher.on("end", function(){
if(server.queue[0]){
play(connection, message);
}else {
connection.disconnect();
}
});
}
if(!args[1]){
message.channel.send("you need to provide a link!")
return;
}
if(!message.member.voiceChannel){
message.channel.send("You must be in a voice channel to play the song!");
return;
}
if(!server[message.guild.id]) servers[message.guild.id] = {
queue: []
}
var server = servers[message.guild.id];
server.queue.push(args[1]);
if(!message.guild.voiceConnection) message.member.voiceChannel.join().then(function(connection){
play(connection, message);
})
break;
}
});```
use pastebin
how have u defind
defined
ok nvm
const voiceChannel = msg.member.voice.channel;
add this
write message
where?
okay
const voiceChannel = msg.member.voice.channel;
^
ReferenceError: msg is not defined
not msg its message
oh
alright testing
i did, changed it but now the bot isnt doing anything
problem with voice
ah i see y
oh nevermind still wont work
with this .voice.channel
that part isnt working
hmm u mean on website?
pastebin?
ah i see let me try
i think thats what u mean @delicate shore
no
https://www.pastebin.com @jagged crater
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
69stats
wrong channe
@jagged crater share link
idk if this is correct one but here u go https://pastebin.com/siqng0YV
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
replace js if(!message.member.voiceChannel){ message.channel.send("You must be in a voice channel to play the song!"); return;
with
if(!voiceChannel) return message.channel.send("You must be in a voice channel to play the song!");```
it should then work
k
^^^^^
SyntaxError: Illegal break statement
at wrapSafe (internal/modules/cjs/loader.js:1053:16)
at Module._compile (internal/modules/cjs/loader.js:1101:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47```
ss button broken atm
what software u use
visual studio code
okay the very end has a error where it is like });
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
k
break is still illegal
at the end not sure y
but the other problem went away
lol yes
hey
i will help u in few hrs
once i get on my pc
after my online class
i will see code
Lol
why is your code so spaced
hmm alr, can u dm in a few hours and when i wake up i will look, if possible. lol its 1:36 am
idk
i didnt feel like backspacing anything
use commnd handler
i was using that for my other commands but havent on this yet, i was thinking that i would get these functions to work then convert them over
but thank you very much i do hope to speak with you again. I am off to bed have a good night/day โค๏ธ
you can set Streaming and add a link to it
@lusty quest it does not work
bot.user.setPresence({
status: 'online',
activity: {
name: 'with depression',
type: 'STREAMING',
url: 'https://www.twitch.tv/monstercat'
}
})```
@lusty quest is it correct
let wembed = new discord.MessageEmbed() //define embed
^
ReferenceError: discord is not defined
at Client.<anonymous> (C:\Users\Pankaj\Desktop\Asender\server.js:60:18)
at Client.emit (events.js:315:20)
at Object.module.exports [as GUILD_MEMBER_ADD] (C:\Users\Pankaj\Desktop\Asender\node_modules\discord.js\src\client\websocket\handlers\GUILD_MEMBER_ADD.js:16:14)
at WebSocketManager.handlePacket (C:\Users\Pankaj\Desktop\Asender\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
at WebSocketShard.onPacket (C:\Users\Pankaj\Desktop\Asender\node_modules\discord.js\src\client\websocket\WebSocketShard.js:436:22)
at WebSocketShard.onMessage (C:\Users\Pankaj\Desktop\Asender\node_modules\discord.js\src\client\websocket\WebSocketShard.js:293:10)
at WebSocket.onMessage (C:\Users\Pankaj\Desktop\Asender\node_modules\ws\lib\event-target.js:125:16)
at Receiver.receiverOnMessage (C:\Users\Pankaj\Desktop\Asender\node_modules\ws\lib\websocket.js:797:20)
at Receiver.emit (events.js:315:20)```
any fix?
oh lol

it shows in first but not once pressed
bot.on("ready", () =>
bot.user.setPresence({
status: 'online',
activity: {
name: `in ${bot.guilds.cache.size} servers | Free Nitro`,
type: 'STREAMING',
url: 'https://www.youtube.com/watch?v=oHg5SJYRHA0'
}
})
)
my code
game: {
name: 'with depression',
type: "STREAMING",
url: "https://www.twitch.tv/monstercat"
}
});````try this?
@lusty quest game is discontinued
well then. idk never really cared about it. but it seems to work for you. also i think only twitch links work
@lusty quest no it goes to youtube link but it does not show the status line
i think it gets overwritten by the streaming status
ok
streaming status doesnโt work on mobile lol
how can I replace a message reaction with some other emoji. (Not required same reaction counts)
or get Rank 2 or 3 Boosting
@lusty quest what does this mean
Boost them a lot
press the server name in the top left and press the first button in the drop down menu
or did you mean on top.gg?
@delicate shore You need to get certified.
Which right now you're unable to do as its closed.
Ohfuck
So that's why I haven't got emails even though I'm pretty sure it's been over 5 days
Or you can send a letter
@delicate shore You need to get certified.
@earnest phoenix the certified developer role?
sorry
Can someone un upvote ?
no
Votes reset each month
And all votes happend right before 2 mins
Votes reset each month
@earnest phoenix
My friends voted rn and it was 7
And suddenly 3
Weird, Sounds like a cache issue
Ok
How do I give myself xp with eval?
pls ticket me
message.channel.bulkDelete(args[1]), (Msgsnotpinned, true);
how do i add more than one requirements?
@mild flower Please do not post your question multiple times.
am sorry :(
but how can i make it so that the pinned message requirement has to be met with false, then it will clear the amount of messages?
what
@rigid maple what's your db?
quick.db ?
can someone here help me with github a bit?
sqlite
Are you using a table or just the db?
When I say table ?
const xp = new Table('xp')
Or
db.set(xp shit)
how can i make an eris bot embed have a color
let xp = await db.fetch(`verilecekxp_${message.guild.id}`)
You're just getting the guild ID?*
Dude next time use a table
But for now
What's your xp system like?
How does it set xp per user
@rigid maple on the message.channel.createMessage line?
do you want me to discard the codes
No
So how do I get a code to be used on only one channel
Does your system work for every user?
So how do I get a code to be used on only one channel
@rigid maple on the
message.channel.createMessageline?
@restive notch
In the message event, do if(<message>.channel.id !== 'ID') return;
@restive notch show embed code so far
embed : {
title: `Help - Echo`,
description: "An Embed witch shows all the commands for Echo",
color: "0xb9d9eb",
fields: [
{
name: "e!ping",
value: `gives the ping of the bot`,
inline : false
},
{
name: "e!serverinfo",
value: `gives info of the server`,
inline : false
}
]
}
})
} ```
color: doesnt work
so #
also are you using eris?
yes
then its client#createMessage(channel_id, embed/text)
what?
but
embed : {
title: `Help - Echo`,
description: "An Embed witch shows all the commands for Echo",
fields: [
{
name: "e!ping",
value: `gives the ping of the bot`,
inline : false
},
{
name: "e!serverinfo",
value: `gives info of the server`,
inline : false
}
]
}
})
} ```
works
oh crap
kk
but how do i use color?
color: 0xffffff for example for white color
doing that says
embed.color: Value "0xffffff" is not int.
at RequestHandler.request (/home/juliefilm/Echo-Bot/node_modules/eris/lib/rest/RequestHandler.js:71:15)
at Client.createMessage (/home/juliefilm/Echo-Bot/node_modules/eris/lib/Client.js:1095:36)
at TextChannel.createMessage (/home/juliefilm/Echo-Bot/node_modules/eris/lib/structures/TextChannel.js:164:42)
at Client.<anonymous> (/home/juliefilm/Echo-Bot/echo.js:50:29)
at Client.emit (events.js:310:20)
at Shard.emit (/home/juliefilm/Echo-Bot/node_modules/eris/lib/gateway/Shard.js:2111:26)
at Shard.wsEvent (/home/juliefilm/Echo-Bot/node_modules/eris/lib/gateway/Shard.js:461:26)
at Shard.onPacket (/home/juliefilm/Echo-Bot/node_modules/eris/lib/gateway/Shard.js:1922:26)
at Shard._onWSMessage (/home/juliefilm/Echo-Bot/node_modules/eris/lib/gateway/Shard.js:1793:29)
at WebSocket.emit (events.js:310:20)
(node:292479) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:292479) [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.
0xcolor but don't have "" or '' around it
ok
#FFFFFF is the same
let me try without ""
works but the bar isnt white
no cli error
yay
0xb9d9eb works
oh wait
it works i think its just ffffff
FFFFFF and ffffff did the same thing
@honest perch
yes welcome to hexadecimal
lame
it's discords fault yeah
doing that says
i didnt say its string, also glad you got it working
thanks
now i need to do it to my python bot but that easy ik how to do it in python
ez
done
whats the ${} thing for the ping to the bot in eris
js?
ยฏ_(ใ)_/ยฏ
ยฏ_(ใ)_/ยฏ
how to make a bot
what launguage
learn a programming language
english
then read the docs of a popular lib
i dont understand
then dont start with bot
Then you're no where near making a bot
bots
we can help you with programming bots but will not teach you how
but you need to know a programming language for this
whats the ${} thing for the ping to the bot in eris
HI
hi
can i ask question about discord bot?
can you look the docs, also it isnt called ${} thing, its called method.
since i forgot it :D
oh sorry
The music is stuck in the middle of the playback and cannot be played
I use the robot with Node.js
@restive furnace can i have the eris docs link
Calling ytdl.getInfo with a callback will be removed in a near future release. Use async/await.
info.title will be removed in a near future release, use info.videoDetails.title instead.
This is the message it showed
@restive furnace can i have the eris docs link
@restive notch https://abal.moe/Eris/docs
Eris, a NodeJS Discord library
thx its not readthedocs.io
ohh boy this google translate stuff
Calling
ytdl.getInfowith a callback will be removed in a near future release. Use async/await.
info.titlewill be removed in a near future release, useinfo.videoDetails.titleinstead.
@zealous talon that you need to use await. (since 14.8.0 its top-level, so u dont need to use async anymore if u dont want to)
@restive furnace Level = Version?
So upgrade Node.js to the latest version?
its not needed
he suggested it bcs in the latest version you dont need to run it inside a async function
Hey guys, I've been having some trouble with my embeds on mobile for a while now... They don't display properly and rather just become these long strips without any content. I knew this happened every now and then, but with my bot it is literally every single message, so I have to scroll up and down after every command (it seems to break whenever you open the keyboard). I don't know what's causing this, but it makes the bot basically unusable on mobile. Idk where to post this but I thought someone here might have an idea :/
@lusty quest bcs?
@signal wagon blame discord
Ik but it didn't use to be every single message
And on other bots it's not happening
Or not as often
it can be a part of how you format the embed. i havent got behind it why this happens. but it looks like a bug in the IOS / Android App
Some of the embeds contain just a single field, some title and description as well, some contain a footer, some have inline fields, some don't
It is a bug
I don't see any pattern
Have you seen the mobile version of discord, wouldn't even consider calling it stable
message.channel.bulkDelete(args[1] + 1);
When I type ;clear 1, it clears 3 instead of 2 messages...
you know that javascript makes a 11 if you say args[1]+1 -> string + number
how do i make it add only 1 to the number
make sure your arg is a number
ok it worked thanks
@signal wagon add a footer
whats the ${} thing for the ping to the bot in eris
@restive notch
oh sorry 'method '
To ping someone in eris, you can use two methods:
`${member.mention}`
`<@${member.id}>`
I just couldn't connect directly
@earnest phoenix why + 1 ?
@golden condor i wan it to be a ping of my bot like 100 ms not and @ ping sorry
Np
Hey. I can't figure out how to work with MongoDB on C# (.NET Core). Does anyone have an experience with MongoDB here?
So the thing I want is to upsert (i think?) some player data which is indexed by ActivePlayerId in the database.
I tried to use the UpdateManyAsync() but couldn't figure out how to set it up properly
Bot development.
Hi
So my bot's statistics refreshes every time I do the command node .
How can I make it refresh every 60 seconds?
elaborate
bot.user.setActivity(`${bot.users.cache.size} members! || a!help`, { type:"WATCHING", })
Do I add this?
bot.user.setActivity(`${bot.users.cache.size} members! || a!help`, { type:"WATCHING", }, 60000)
60000?
do I add that?
no, that's not an argument of setActivity
use the setInterval method to run the function every 60 seconds
do I add that?
@feral aspen you gotta use setInterval
This is the syntax:
setInterval(function(){
//the code you want to repeatedly run
}, the time before running it again in milliseconds);
Hope it helped you
Is my bot verified?
i don't know, is it?
Is my bot verified?
@chilly lava try using it in testing
Or better visit it'spage
If it shows the vote button then it is verified
if it was, luca wouldve dm'd u
lul
bot.user.setActivity(`${bot.users.cache.size} members! || a!help`, {
type:"WATCHING",
})
}, 60000);```
like this?
Hey pls use my bot n give me ratings
Lol
it gave an error
Huh?
@chilly lava not the place to advertise
Cannot read property 'name' of undefined
theres no name there llol
Yeah
its coming from index.js
So
so show it to us
learn to debug and read errors properly
On a different line
Not necessarily inside setInterval
I m not advertising i m only taking test n ratings
which is advertising
I m not advertising i m only taking test n ratings
@chilly lava then do that in #commands
@chilly lava 'pls check my bot' is advertising, this is for development
do any one know how to get discord emoji picker in external website? because i want user able use their server emoji in my bot dashboard
do any one know how to get discord emoji picker in external website? because i want user able use their server emoji in my bot dashboard
@wet osprey read their docs
...the actual picker?

Oh wait
@wet osprey read their docs
@earnest phoenix which docs?
I am getting this error with lavalink:
2020-07-27 11:45:29.919 WARN 9638 --- [ main] l.s.c.AudioSendFactoryConfiguration : This system and architecture appears to not support native audio sending! GC pauses may cause your bot to stutter during playback. and I can see what it means, but is there anyway to fix it and/or stop it happening like a program I can install?
For more info:
I am running on a raspberry pi 4B
i personally don't think so, there might be but i doubt it, a lot of languages can't be used to their fullest potential on ARM
Alright then, thanks
I'll try using the node, see how it runs
See if it is affected
is anyone here colourblind and want to do me a quick favour
is this rank card readable to you if you are colourblind?
https://media.discordapp.net/attachments/737090587248820246/737260859759394866/triviabot_rank_card.png
uhh kinda
Ok the node works for searching, but not playing
I don't blind
java.lang.UnsatisfiedLinkError: Required library at /natives/linux-arm/libudpqueue.so was not found This error happens when I try play a song
@green kestrel the background is a solid color to me but I can read all the text
Unless its supposed to be a solid color idk it looks wavy like it might be more than one color
The background does have more than one color, in fact :^)
the background is a gradient of 6 shades of blue, but not important to the readability of the card
Is anyone did 24/7 command in bot designer for discord
the bigger question is... how would someone who's actual registered blind use a rank card? ๐ฎ
thanks for the feedback anyway ๐
i ran it through colourblindcam on an iphone, but i dont trust these apps
Wow
lol
sometimes they have no clue, e.g. blue/red etc
my boss at work is one of the rarer types of colour blindness, and hes the go-to for checking accessibility of colours for work stuff but i can hardly call him up about personal projcts lol
Would it be possible to run commands for a bot in the command line? ie say the bot had a command called hello.js can you run it without calling the command on a server
yes
you'd need to 'seed' your environment to allow it, e.g. have some kind of setup that sets the correct parameters for the message event, so your bot actually thinks a message has arrived
i have something in my bot that lets the website insert a command into an sql table that is then executed as that user, as far as the bots concerned it's a CREATE_MESSAGE websocket event that it came from
my code wont help you though unless you feel like porting C++/aegis to whatever youre using
so u execute a command from the website?
i can execute two specific commands from the website, yes, as the user who's logged in
to start and stop trivia
that's cool
Thanks
it lets me do this
whats the name of your bot?
and also start on schedule, for premium users, so they can say they want a game to start at 8pm every night
@inner dirge
u got premium?
its my bot, so yes ๐
oh wait, you mean i have a premium system? yes
it integrates with stripe and chargebee
yeah is it going good?
meh, so so
within the first week i had a yearly premium, no new ones since then yet though
oh
I am confident for doing 100 of trivia
but its only been running a month, and not getting premium subs wont mean it shuts down or anything
the premium subs cover the additional cost of the computing resource needed for the things in premium
like faster rounds etc
is stripe better than paypal?
i think so, the percentages they take are much lower, it looks more professional, and they dont freeze your account just for making your first $1000 or whatever
So..the premium has price
they have their own api?
yeah
stripe are all about api, its very neat and tidy
well, stripe is a proper payment gateway
so stripe isn't available on my country
i dont think you can sign up for it legally until youre old enough to sign a contract in whatever country you are based in
because it needs direct debit details and BACS details etc
the only thing to watch out for is chargebacks
hey @green kestrel can u come in #topgg-api for a min
and by extension... fraud ๐
shit sucks :/
i use two services together, stripe and chargebee
stripe is the payment processor
chargebee handles recurring payments, dunning, etc etc, and is very cool, its free for your first $100k of revenue]
and it can use any payment processor you can think of... including paypal
so you could do chargebee/paypal
you could use patreon as a alternative. still charges somewhere between 3-12% of each payment as a fee and you need to make yourself a workaround for getting the Discord User id of them but it can work
stripe can handle recurring payments by itself, but chargebee is better at it
yeah patreon takes a huge cut
stripe take like 1.4% + 20 cents per transaction
so im not out of pocket on a $3/mo premium
patreon actually only charges you the "premium" features on each subscription not a monthly fee wich is nice
on chargebee i pass the discord user id into their api when i make the shopping cart at https://triviabot.co.uk/premium and it sends it back via the webhook if they purchase, which redirects them to pick a guild to put the premium on
Add trivia quiz games to your discord server with this free to use bot from Brainbox.cc. Featuring over 90,000 questions, team play, free leaderboards, quickfire rounds, community rewards, a user friendly dashboard and more, there is nothing quite like this bot. Invite now!
each time they subscribe it gives them a 'credit' they can spend making one guild premium, a bit like how mee6 does it
-bots @civic parrot
once they spend that credit, its permenantly attached there until they cancel their subscription or ask me to move it to another guild
this is cool. i use patreon rn. but for getting the non existing premium features you need to be on my Discord server
@civic parrot wrong channel for bot commands
sorry. not sure which channel to to post to.
probably #commands or #265156322012561408 would be best ๐
ok thanks
np
@lusty quest if you did a proper api integration with patreon rather than relying on their bot granting a role, you'd be able to do away with that requirement
patreon API doesnt return the Discord UserID
their API sucks dog balls though
i know and got discontinued last month
it did?!
yes
what, the whole api?
they cant maintain it longer
or just the bot?
so what, theyre just relying now on everyone who uses patreon being a youtuber?
thats really stupid
im really glad i didnt use it now...
thats just so not 2020
everyone else is moving forward, theyre moving backwards
-bot
if you asked the web admins here what to use, they'd say donatebot
but it uses paypal only, so... thats a no from me personally
its stupid. it limits what content creators with websites, games,etc that got a patreon integration can do
rip chargebee wants 250โฌ/month. i guess i stuck with patreon for now
ohh nvm its free until a certain amount of transactions per year
yeah, its free for your first $100k
which is a LOT of transactions
$100k of revenue, no matter when, so it might take you 30 years to reach that it might take you 6 months
if it takes you 6 months i doubt $250 a month will bother you
btw read this

covid near killed them off, odd for basically an online business, what, they cant work from home?!
funny enought if i would reach 100k/year i better had started a company after the first 2k or i get some issues with Tax Frauds
exactly
well in the UK i can operate as a sole trader as big as i like
i could be making millions a year but not be a registered limited company, so long as i properly declare my taxes
there comes a point though where that simply doesnt make sense
e.g. if i remember right you need to be VAT registered to claim VAT back, and to do that i think you need to be a limited company, but im not an accountant...
yea i think you need to be a registered company for this
are you in the UK?
germany
ah ok
I thought that said soul trader for a second
i was able to do it all without needing to be a limited company, but if needed i have pleanty of company documentation for my sole trader stuff that i can send people, ive used it to open accounts at cash and carry's and all sorts ๐
did some research on the tax stuff before i created the patreon page i have now (just to make sure to know when i need to start with the taxes etc)
basically all you need is an invoice with your home address on it
one to you, and one from you
at least here in the uk
Twoja stara Adrian
thats enough to prove youre a business operating as a sole trader for most of them
i have a friend who had a hosting company for about 2 years but closed it down to focus on school
he got Tons of invoices from this and he needs to keep them for 10 years
yeah
if youre making a serious go of it best to sign up for something like xero for that
(which chargebee can integrate with btw)
or just keep your invoices in chargebee
@green kestrel is there any command to see the queue position of my Bot? or is the queue info private?
@north silo #topgg-api
the info is not available even to us mods, @civic parrot we just see a list of bots and cant tell what position really apart from by guessing, even then we arent allowed to share the info
time to think about premium rewards. still got no idea what to do and not to kill off other stuff with it.
what kind of bot is your bot @lusty quest ?
btw you should join my guild because your name fits... tons of people there changed their nicks Brain-2 Brain-3 etc lol
๐
Hmmnn. I see. No worries. Was just wondering if my bot is anywhere near to being noticed. ๐
mostly a Utility Bot for Warframe -> Looking Up the FandomWiki, Fetching Droplocations from Items, Rotations for some special Missions and some smaller stuff.
got also a meme command but this already generates me Votes on DBL
hmmm, is there some stuff where the user has to do a command to find out the info, but the bot could retrieve it in realtime and ping people directly?
something like that could be premium ๐
yea got a idea. but the issue is exactly this stuff do other bots but for free (they are on DBL and way larger than my bot)
i tend to make things premium that actually cost me money to run, e.g. running scheduled trivia games takes more cpu time, allowing faster games can put me closer to the ratelimit
most stuff i currently have is on demand. the "only" one where i could apply it is not used enought to justify it.
does your bot have clan management
for the 2nd bot i currently have in the query i have already ideas for Premium features
currently only a LFG command
if you add clans, so people can register their clan in your bot, the bot gives them a page for their clan that they can customise
then they can add other discord users to their clan
theres tons of opportunity for premium in that, for customisation etc
i dont think its something that will get much attention
im adding something like this atm for trivia teams, but for the most part it'll be free
(mostly bcs the largest server the bot is on is more or less one clan with 10k users on the server)
man for my auction bot its pretty easy to make premium stuff. like without you got 2-3 free Auctions for more you need premium
also its risky for me RN to get to much work into the bot bcs there is a chance that the bot will die next year depending on how the new Owners of the Game company handle it
if (command === "ping") {
const msg2 = await msg.channel.send(`๐ Pinging...`);
msg2.edit(`๐ Pong ${Math.floor(msg2.createdAt - msg.createdAt)}ms`)
}
it says 0ms
why so?
nvm
i got it
nice got an idea for a premium feature
nice got an idea for a premium feature
@lusty quest how many servers ur bot in
about 190 rn
i started bidding on tags. this got me the past week about 80 new guilds
.
i recall when i added mine here
2 random bot servers added it
thats it 
so much for 'unique bot'
this is how i started. then i added rewards for voting
then i start to bid on tags
i dont wanna bid tho
if your bot is unique enought and not niche it could blow up
like without bidding i probably would still grow but not as fast as the last week
the graph shows it also
unique enough is an understatement. The only 'competition' i have is phatomBot, which you need to install programs and it self hosted
i dont have competition in that regard when it comes to relay/integration between IRC's
i guess your issue is that the bot is niche i have the same issue
its more about not having enough exposure
i dont do ads whatsoever
so you'll find it by chance
ยฏ_(ใ)_/ยฏ
i had luck and got pretty much instant the first spot in the warframe tag without advertising. but now ive also got the Meme Bot tag this gives me about 20k views
fair, my bot fills more of a specific role
its not much of a general-use bot
even though it has other features
i could just add those shitty trend commands and begone with it
but the problem in my case is having to implement the command 3 times for each command i write
for each command i gotta add it on the different bots
that makes it awfully hard to have 200+ commands
rip
my servers is levelling off a little these days @lusty quest
still your bot grew a shitton
yeah
well your baseline a month ago is what i have today
i wanna show my bot command list












