Skip to content

donwiktorb/dwb_radio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Fivem script for discord radio. 👋

Need help or searching for fivem stuff?

➡️ Join discord here

How to setup video Youtube.

BOT SETUP

  • Create new discord where you need to make Waiting channel on top and hidden 1 2 3 4... channels then continue these steps
  • Next you have to setup discord.js bot, download and install Node js
  • If you are using linux then you should follow these steps:
  • Nodejs
  • THE HARD WAY
  sudo apt-get install npm
  cd /opt/
  wget https://nodejs.org/dist/v12.19.0/node-v12.19.0-linux-x64.tar.xz
  tar xf node-v12.19.0-linux-x64.tar.xz
  mv node-v12.19.0-linux-x64 nodejs
  rm node-v12.19.0-linux-x64.tar.xz
  • THE EASY WAY
  • Installing bot
    • Create bot on Discord Dev by creating new application (copy client id and save it for later) and clicking add bot, then copy the token
    • Edit config.js token with bot token
    • Edit config.js channel with the same channelid as the webhook and bottom line with token you have generated from Discord
    • Put radio.js with package.json in some directory ex. /home/bot/ then execute these in console
    • Using linux
       cd BOT DIRECTORY ex. /home/bot/
       npm install
       /opt/nodejs/bin/node radio.js
    
    • Using windows
       cd BOT DIRECTORY ex. /home/bot/
       npm install
       node radio.js
    

SCRIPT SETUP

  • Edit dwb_radio config.lua, change the webhook to one generated on Discord Server Settings - Integrations, then put script into fivem resources folder and start it in server.cfg

HOW TO USE

  • If you have everything installed and configured, join discord channel that you created on top named Waiting room or something and type /radio [channel number]

About

Discord radio for fivem servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published