Skip to content

This bot uses the cfx-api module released in August 2022 by Pablo-1610 on the Cfx.re forum, but without posting a document to date for the use of NodeJS variables, consequently in the last few days I have started studying the source code and have been able to exploit it with good potential.

License

Notifications You must be signed in to change notification settings

NicokageIT/cfx-api-botv2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

"cfx-api-botv2"

This bot uses the cfx-api module released in August 2022 by Pablo-1610 on the Cfx.re forum, but without posting a document to date for the use of NodeJS variables, consequently in the last few days I have started studying the source code and have been able to exploit it with good potential.

Issues

I am aware of small errors, such as tags not working or the patreon server's subscription number not showing (au, ar, pla). However, I am continuing to study the module carefully and will get to work on releasing a more innovative version. Furthermore, I am intent on creating a document on gitbook where I can transcribe all the functions made available.

Discord developer site

  1. Open Discord Developer Site > New Application
  2. Then write a name of your bot, accept tos and click on "create"
  3. Now you need to go to the OAuth2 section and click on the "bot" option, in the second box you need to click on the "administrator" option. This will generate an invitation link for your new bot to join your discord server.
  4. Next go to the "Bot" section, reset the token to generate one to replace it in the "TOKEN" variable in fivem.js

DISCLAIMER: remember in the "Bot" section to activate all three privileges in "Privileged Gateway Intents"

How to use

  1. Install NodeJS --> version 22.4.0
  2. Install Visual Studio Code
  3. Open JS file, open Terminal, write and run npm i discord.js cfx-api
  4. Configure fivem.js file in "CHANNEL_ID", "GUILD_ID", "CLIENT_ID"
  5. Then reopen terminal and run node fivem.js

Available commands + Check event

  • /status-cfx Get the general Cfx.re status
  • /status-individuals-cfx Get the status of all individual Cfx.re components
  • /server-info Get server details from a Cfx.re join code
  • /commands List all available commands and their descriptions
  • /refresh-status Manually refresh the Cfx.re status
  • /news-outage Get the current Cfx.re outage status

checkCfxStatus I have implemented a check event also regarding the status of Cfx. It works in such a way that if a component's status is updated then it sends an embed log that can be configured to your liking by modifying the channel ID in the CHANNEL_ID variable

Support

Need you support? Contact me on discord for serious issues: Nicokage#0

Preview Photos

image image image image image image image

About

This bot uses the cfx-api module released in August 2022 by Pablo-1610 on the Cfx.re forum, but without posting a document to date for the use of NodeJS variables, consequently in the last few days I have started studying the source code and have been able to exploit it with good potential.

Resources

License

Stars

Watchers

Forks

Packages

No packages published