CES Discord Review Bot
#Installation & Setup Guide
CES Discord Review Bot allows members of your Discord server to submit reviews through a clean review form.
Reviews can be submitted as either Named or Anonymous and are posted as embeds in a review channel.
The bot also includes administrator-only commands for viewing review statistics, listing reviewers, deleting review history, and resetting all stored reviews.
#Requirements
Before installing CES Discord Review Bot, make sure you have:
- A Discord server
- A Discord application/bot
- Node.js v18 or newer
- Access to your Discord Developer Portal
- Permission to manage your Discord server
- A computer or hosting service where the bot can stay online
No database server is required.
Reviews are stored locally in:
reviews.json#Step 1 β Create Your Discord Bot
Go to the Discord Developer Portal:
https://discord.com/developers/applications
- Log in with your Discord account.
- Click New Application.
- Enter a name for your bot.
- Click Create.
- Open the Bot section.
- Click Add Bot.
- Confirm when prompted.
Keep this page open because you will need your bot token later.
#Step 2 β Get Your Bot Token
In the Discord Developer Portal:
- Open your application.
- Select Bot.
- Find the Token section.
- Click Reset Token if you need to create a new token.
- Copy the token.
Your token will be used in the .env file.
β οΈ NEVER share your bot token.
Anyone with your bot token may be able to control your bot.
If your token is accidentally exposed, immediately reset it in the Discord Developer Portal.
#Step 3 β Get Your Application ID
Open:
Developer Portal β Your Application β General Information
Find:
Application IDCopy the value.
This will be used as:
CLIENT_ID=your-application-client-id#Step 4 β Get Your Server ID
You need the ID of the Discord server where the bot will operate.
In Discord:
- Open User Settings.
- Go to Advanced.
- Enable Developer Mode.
- Right-click your Discord server.
- Select Copy Server ID.
You will use this as:
GUILD_ID=your-server-id#Step 5 β Create Your Review Channels
CES Discord Review Bot uses two channels.
#Review Command Channel
This is where members type:
!reviewThe bot will respond with the review buttons.
Example:
#leave-a-reviewCopy the channel ID and use it for:
COMMAND_CHANNEL_ID=channel-id#Review Channel
This is where completed reviews are posted.
Example:
#customer-reviewsCopy the channel ID and use it for:
REVIEW_CHANNEL_ID=channel-id#Step 6 β Create an Admin Role
Create a Discord role for people who should be allowed to manage reviews.
Example:
CES Review AdminGive the role only to trusted staff.
Copy the role ID and use it for:
ADMIN_ROLE_ID=role-idServer members with the Discord Administrator permission can also use the admin commands.
#Step 7 β Invite the Bot
Your bot needs to be invited to your Discord server with the correct scopes and permissions.
The bot needs these OAuth2 scopes:
bot
applications.commandsRecommended permissions include:
- View Channels
- Send Messages
- Embed Links
- Read Message History
- Use Application Commands
The bot needs permission to send messages in the command channel and review channel.
#Step 8 β Enable Message Content Intent
The !review command requires Discord's Message Content Intent.
Go to:
Developer Portal β Your Application β Bot
Find:
Privileged Gateway IntentsEnable:
Message Content IntentSave your changes.
β οΈ Without Message Content Intent, typing
!reviewwill not trigger the bot.
#Step 9 β Install Node.js
CES Discord Review Bot requires:
Node.js v18 or newerDownload Node.js from:
After installing Node.js, open a terminal and check:
node -vYou should see a version such as:
v18.x.xor newer.
You can also check npm:
npm -v#Step 10 β Extract the Bot
Extract the CES Discord Review Bot ZIP file.
Your folder should contain files similar to:
CES_Discord_Review_Bot/
βββ index.js
βββ package.json
βββ .env.example
βββ reviews.json
βββ CHANGELOG.md
βββ README.md
βββ Discord Bot License.txt
βββ .gitignore#Step 11 β Install Dependencies
Open a terminal inside the bot folder.
Run:
npm installThis installs the required Node.js packages.
CES Discord Review Bot uses:
- discord.js
- dotenv
#Step 12 β Create the .env File
Inside the bot folder, make a copy of:
.env.exampleRename the copy to:
.envYour folder should now contain:
.env
.env.exampleOpen .env.
#Step 13 β Configure .env
Your .env file should contain:
BOT_TOKEN=your-bot-token-here
CLIENT_ID=your-application-client-id
GUILD_ID=your-server-id
COMMAND_CHANNEL_ID=channel-id-where-you-type-!review
REVIEW_CHANNEL_ID=channel-id-where-reviews-get-posted
ADMIN_ROLE_ID=role-id-that-can-use-admin-commandsReplace each value with your actual Discord information.
#BOT_TOKEN
Your Discord bot token.
BOT_TOKEN=your-bot-token#CLIENT_ID
Your Discord application's Application ID.
CLIENT_ID=123456789012345678#GUILD_ID
Your Discord server ID.
GUILD_ID=123456789012345678#COMMAND_CHANNEL_ID
The channel where members type:
!reviewExample:
COMMAND_CHANNEL_ID=123456789012345678#REVIEW_CHANNEL_ID
The channel where completed reviews are posted.
Example:
REVIEW_CHANNEL_ID=123456789012345678#ADMIN_ROLE_ID
The Discord role allowed to use the review administration commands.
Example:
ADMIN_ROLE_ID=123456789012345678#Protect Your .env
Never upload or share your real .env file publicly.
Do not post your:
BOT_TOKENin:
- Discord
- GitHub
- Forums
- Screenshots
- Support tickets
- Public websites
The included .gitignore is designed to help prevent .env from accidentally being committed to Git.
#Step 14 β Start the Bot
Once your .env file is configured, run:
npm startIf everything is configured correctly, you should see something similar to:
β
Logged in as YourBotName
β
Slash commands registered!Keep the terminal running while you test the bot.
#Step 15 β Test the Review System
Go to the channel configured as:
COMMAND_CHANNEL_IDType:
!reviewThe bot should create a review message with two buttons:
Review (Named)
Review (Anonymous)#Step 16 β Submit a Review
Click:
Review (Named)or:
Review (Anonymous)A review form will appear.
The form contains:
#Rating
Enter a number from:
1β5#Feedback
Enter your review.
#What did you buy?
Optional.
#Image URL
Optional.
If an image is provided, it must be a direct link ending in:
.png
.jpg
.jpeg
.gif
.webp#Example Review
A submitted review may look similar to:
Rating:
βββββ (5/5)
Reviewed by:
CustomerName
Item Purchased:
CES AI Medic
Feedback:
Great script and very easy to install!The review is posted as a Discord embed in your configured review channel.
#Named Reviews
When a user selects:
Review (Named)their Discord username is displayed on the public review.
Example:
Reviewed by:
CustomerName#Anonymous Reviews
When a user selects:
Review (Anonymous)their name is hidden from the public review.
The review will display:
Reviewed by:
Anonymous#Important
Anonymous reviews are not completely anonymous internally.
The bot stores the user's Discord ID so administrators can moderate abusive submissions.
The Discord ID is not displayed publicly as the reviewer's name.
#Administrator Commands
CES Discord Review Bot includes administrator-only slash commands.
These commands are restricted to:
- Members with your configured
ADMIN_ROLE_ID - Server members with the Discord Administrator permission
#/reviewstats
Shows the total number of reviews and the average rating.
Use:
/reviewstatsExample:
π Total Reviews: 25
β Average Rating: 4.72You can also check a specific user.
Example:
/reviewstats userid:123456789012345678The bot will show:
π 123456789012345678 has submitted 3 review(s), average 5.00/5.#/reviewlist
Lists users who have submitted reviews.
Use:
/reviewlistExample:
π Reviewers:
CustomerName β 123456789012345678
Anonymous β 987654321098765432
AnotherCustomer β 555555555555555555Anonymous submitters appear as:
AnonymousTheir Discord ID remains visible to administrators for moderation purposes.
#/deletereview
Deletes the stored review history for a specific Discord user.
Use:
/deletereview userid:USER_IDExample:
/deletereview userid:123456789012345678This removes the user's stored review history from:
reviews.json#/resetreviews
Deletes all stored review data.
Use:
/resetreviews confirm:CONFIRMYou must type:
CONFIRMexactly.
This confirmation is required to help prevent accidental deletion of all review statistics.
β οΈ This action cannot be undone unless you have a backup of
reviews.json.
#/respondreview
The command exists for command-menu compatibility, but thread replies are disabled in this version.
Running it will return a message explaining that thread replies are disabled.
#Review Data
CES Discord Review Bot stores review statistics in:
reviews.jsonThe file is located in the bot's main folder.
Example:
CES_Discord_Review_Bot/
βββ index.js
βββ package.json
βββ .env
βββ reviews.jsonThe stored data includes information such as:
- Review count
- Ratings
- Username information
- Anonymous status
#Backing Up Reviews
Before moving or reinstalling the bot, back up:
reviews.jsonSimply copy the file somewhere safe.
For example:
Backups/
βββ reviews.jsonWhen moving the bot to another host, copy your existing reviews.json into the new bot folder.
#Updating the Bot
Before updating CES Discord Review Bot:
- Stop the current bot.
- Back up
.env. - Back up
reviews.json. - Download the new version.
- Replace the old bot files.
- Restore
.env. - Restore
reviews.json. - Run:
npm install- Start the bot:
npm start- Test the review system.
Important: Never overwrite your
.envwithout keeping a backup of your configuration.
#Hosting the Bot
The bot needs to remain online to respond to Discord events.
You can run it on:
- A VPS
- A dedicated server
- A computer
- A game-server host that supports Node.js
- Another Node.js-compatible hosting service
The important requirement is that Node.js can run continuously.
#Troubleshooting
#Bot Won't Start
Check your .env file.
The bot requires:
BOT_TOKEN=
CLIENT_ID=
GUILD_ID=
COMMAND_CHANNEL_ID=
REVIEW_CHANNEL_ID=
ADMIN_ROLE_ID=If one is missing, the bot will tell you which value is missing.
#"Failed to log in"
This usually means the bot token is incorrect.
Check:
BOT_TOKEN=your-bot-tokenMake sure:
- The token is correct.
- There are no extra spaces.
- You did not accidentally use the Application ID.
- The token has not been reset.
If you reset the token, update your .env file with the new token.
#/reviewstats or Other Slash Commands Are Missing
Check that the bot was invited with:
applications.commandsAlso verify:
CLIENT_ID=
GUILD_ID=are correct.
The bot registers its slash commands to the configured Discord server.
#!review Does Nothing
Check:
COMMAND_CHANNEL_ID=Make sure it matches the channel where you are typing:
!reviewAlso make sure Message Content Intent is enabled in:
Developer Portal β Bot β Privileged Gateway Intents
#Reviews Are Not Posting
The bot needs permission to send messages and embeds in the review channel.
Check that the bot has:
- View Channel
- Send Messages
- Embed Links
in the channel configured as:
REVIEW_CHANNEL_ID=#Image Is Not Working
The image must be a direct image URL.
Supported extensions:
.png
.jpg
.jpeg
.gif
.webpExample:
https://example.com/image.pngA normal webpage URL containing an image may not work.
#Admin Command Says You Are Not Allowed
Make sure you have either:
- The role configured in:
ADMIN_ROLE_ID=or
- The Discord Administrator permission.
After changing the admin role, restart the bot if necessary.
#Production Checklist
Before making the bot available to your community, verify:
- [ ] Node.js v18+ is installed
- [ ] Discord bot has been created
- [ ] Bot token is configured
- [ ] Client ID is configured
- [ ] Server ID is configured
- [ ] Command channel is configured
- [ ] Review channel is configured
- [ ] Admin role is configured
- [ ] Message Content Intent is enabled
- [ ]
applications.commandsscope is enabled - [ ] Bot has required channel permissions
- [ ]
npm installcompleted successfully - [ ] Bot starts without errors
- [ ]
!reviewworks - [ ] Named reviews work
- [ ] Anonymous reviews work
- [ ] Review embeds post correctly
- [ ]
/reviewstatsworks - [ ]
/reviewlistworks - [ ]
/deletereviewworks - [ ]
/resetreviewsconfirmation works - [ ]
reviews.jsonis backed up
#Support
If you need help with CES Discord Review Bot, contact Crazy Eyes Studio Support.
When requesting support, include:
CES Discord Review Bot Version:
1.4.0
Problem:
Describe the issue.
Error Message:
Copy the exact error message.
Node.js Version:
Your Node.js version.
Discord Server:
Your server name.
Steps to Reproduce:
1.
2.
3.
Screenshots:
Attach screenshots if available.Do NOT send your bot token or .env file to support.
#More CES Documentation
Visit the CES Docs website for documentation for other Crazy Eyes Studio products.
CES Docs
https://docs.crazyeyesstudio.com/
Crazy Eyes Studio
#Β© Crazy Eyes Studio
CES Discord Review Bot is a product of Crazy Eyes Studio.
All rights reserved.
See Discord Bot License.txt included with the resource for the full license.
Was this article helpful?