Skip to content

John-Fries-J/GeneralPurpose-discord-bot

Repository files navigation


Logo

A basic Discordjs V14 bot with common commands

Free easy discord bot with lots of configurable options
This is a passion project so don't expect updates immediately and it might not be perfect so feel free to create issues and prs if you want to help but if I can't fix dont be a beg.

IF YOU ARE HAVING ISSUES OR ANY SUPPORT QUESTIONS. JOIN MY DISCORD. https://johnfries.net/discord I have notis on for discord so I'll respond ASAP.

About The Project

This bot is made with the intention of setting things up without configing beforehand. You can setup most of the channels. Roles ect via commands rather than hard code. There is no need for a database and its 2 commands to get started. Super simple for people that just want to run a bot with some cool features and forget about it. If you're wanting to create something more permenant i.e setting the ticket channel once then never touching it again. Let me know on discord and I'll create a custom repo for you that has your desired needs. Same with custom commands, If you want help setting them up let me know and I'll help on discord!

Index:
Command List
Getting Started With the bot
Config Setup and Explanation

GettingStarted

Download all the dependacies using npm i I'm using node v18.12.1
Now fill out the exampleconfig.json config. For more details check here!
Make sure to change your config filename to config.json or YOUR FILE WILL NOT WORK.
Once all your dependancies are downloaded type either npm run run or node index.js

Commands:

Moderation

  • /ban [user] [reason] [duration] - "Bans a user from the server can also have a duration on the ban"
  • /unban [user] - "Unbans a user from the server using their discord ID"
  • /mute [user] [duration] [reason] - "Mutes a user in the server with the timeout feature."
  • /unmute [user] - "Unmutes the user"
  • /purge [amount] - "Purges the specified amount of messages"

Utility

  • /ping - "Gets the ping of the bot"
  • /user - "Provides information about the user"
  • /server - "Provides information about the server"
  • /avatar - "Provides the users avatar or selected user"
  • /help [Optionally can specify the command you want more detail on] - "Provides a list of the commands the bot has."

Ticket

  • /ticket [embedMessageChannel] [supportRole] [ticketCategory] - "Initiates the ticket system and sends the embed through."
  • /close - "Closes the ticket. Allows the support role to still see the channel but disables the ticket owner from seeing the channel"
  • /delete - "Deletes the ticket channel. Looks for any channel with the name "closed-" so be careful."

Config


"token":"", This is your discord bot token. Find it here under Bot
"prefix":"!", This can be anything but is set to ! by default. This isnt really used but here incase I pull it in at some point as all the commands are slash commands
"devs":["630070645874622494"], This is your discord ID by default its mine but you can change it out and put yours in there. If you want to put multiple you should seperate it out like an array like follows: ["630070645874622494", "464107754198663168"]
"logChannel":"", This is currently where all the bots logs go whenever someone runs a command. Eventually this will be swapped out at a later version. **NO LONGER NEEDED IF THERE IS A CHANNEL CALLED "logs" BUT CAN STILL BE USED**
"statusName": "Bot Status", This is what the bot is "playing" I recomend something like. "/help" but its entirely up to you
"clientId": "", This is the bots client ID found here under OAuth2
"guildId": "" This is the parent servers ID. This is currently not used for anything but if this bot is used in one guild specifically or you have a main server just put the ID there.



Authors

  • John Fries - Developer - John Fries - Made everything

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published