Share your repls and programming experiences

← Back to all posts
Comicord.js!
ThatGhost

Version 2.1.2 is out!
And the api (finally) works!

Thanks to @JustCoding123 for helping me make release this version, couldn't have done it without them!

So lets document it!

Updates

  • Integrated socket.io for better performance.
  • Redid Bot Class.
  • Fully functional Login system.
  • messageSent event does not return another class, it returns a json object.
  • Added mentioned and online events.
  • mentioned event runs whenever the bot is mentioned in a message.
  • online runs whenever the bot is online.
  • Added createdTimestamp property to message, so you now know when the message was created.

There were lots of updates, and there are going to be tons more soon!
Need api support? Join the Comicord group! 3484850dmngm

Voters
JustCoding123
maxina
GameDev46
AmoghTheCool
ThatGhost
Comments
hotnewtop
JustCoding123

I know how to use the api. Make an account for the bot (or use an already existing one). Go to a channel and open dev tools. Navigate to network and send a message in the channel. You will see the request and the Request URL has every parameter you need.

ThatGhost

@JustCoding123 tysm! maybe the api can work this time XD

JustCoding123

@ThatGhost You're welcome

GameDev46

Do you have any idea to not make it a discord copy? I kinda want it to be its own chat site and not copy another!

ThatGhost

@GameDev46 i was joking when i made the post, its more inspired, but you should try making unique features (duh) but like things discord doesnt have. its kinda hard though bc discord is probably the most popular chatting site rn and alot of tings that are convenient they already thought of

GameDev46

@ThatGhost Yes XD Thanks for the info though! =D

ThatGhost

@GameDev46 is my timeline accurate?

GameDev46

It is fine XD

GameDev46

@GameDev46 I am also on planning on making my own bot package (so it can work with the real time chatting)

ThatGhost

@GameDev46 thats awesome, sorry for ping ya btw

ThatGhost

@GameDev46 i do suggest making a developer portal system, as it would be easier if you had that. you could make the account from the portal and it generate an already encrypted password

GameDev46

@ThatGhost I really don’t mind when people ping me XD

ThatGhost

@GameDev46 alright, ill make sure to spam ping you every waking hour of the day

GameDev46

@ThatGhost Yes, in a future version there will be the ability to create bots

GameDev46
ThatGhost

@GameDev46 hope you dont mind me asking, but i was reading through the server and on line 46 you make a variable called token, which is the index 3 on split message, what does that mean

GameDev46

@ThatGhost The token is the users temporary if which is generated every time they log in and is used to verify if they are that user

ThatGhost

@GameDev46 oh ok
one more question, when the server returns message data, what are the first 3 entries?

GameDev46

@ThatGhost The year then the month minus 1 and the day of the month the message was sent on

AmoghTheCool

The source code looks cool though it's broken as of now (I get an error).
Tip:
When you want to make changes, I'd suggest you fork the original repl and edit the fork (debug, add changes, run, etc...). Then change the original to the exact same as the fork. This makes the talk post much less buggy during updates.