Skip to content

Haise777/OPZBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


OpzbotBanner

OPZBot

A multipurpose Discord Bot for my server, built using Discord.Net.

Static Badge Static Badge GitHub release (with filter) GitHub License

Key FeaturesUsageDownloadCredits

Key Features

  • Backup of text channels to a database file
    • All of channel's messages.
    • Full file backup support without any file type limitations.
    • Blacklist specified users from being saved on the backup.

Setting up

Requirements

  • You need to have .NET Runtime version 8.0 or higher installed on your machine
  • A Discord user account
  • Have admin privileges on at least one Discord server

Prior to bot initialization

Creating a Discord Bot User

  • Go to Discord's Developer Portal

  • Create a new application by clicking on the blue New Application button on the top right of the page
    • You can name it how you want.

  • After creating and selecting your new application, go to the Bot tab on the left
    • Click on Reset Token button and copy the generated token
    • Note it for later, don't share it nor place it where anyone could see it.
      Your bot's token can be used to gain total access to your bot user, thus having the possibility of making you the one responsible for any malicious content someone else is making it send
    • Scroll down to Privillege Gateways Intents section and then turn on all of the three intents.
      refer to this for more information

  • Go to OAuth2 tab on the left, on the URL Generator option
    • Check both the bot and application.commands checkboxes
    • Now mark these checkboxes so that the bot have the necessary permissions
      checkboxesinfo

      Note: You can just mark the 'Administrator' checkbox for possible channel permission issues

    • Copy the Generated Url link on the bottom and paste it on your browser
    • Now select the desired server to invite de bot and authorize it
      Done creating the bot user

Now you can start the installed OPZBot application on your machine

  • Select the [C] Config option on the startup screen
    • Paste the token from early on the [B] Token option
    • You can set the bot to consider the main admin role from your server by pasting its id on [A] Main admin role id
    • For the backup purpose, it is needed to set your local default GMT value, which include negative values
    • The general cooldown refers to limiting if you can make more than one backup per channel per day, it is recommended to leave it on True

  • You can then return and select the [R] Run option

After the bot is running

  • You can use slash commands to interact with the bot
    • A list of supported commands will be shown when you select the bot in the slash command dropdown

  • All of the backed up messages will be stored in the discord_backup.db within the Backup folder found in the Bot's directory
    • You can also find the backed up files within the Backup folder

Download

Download the latest version of OPZBot for Windows or Linux.

Credits

This software uses the following open source packages:


OPZBot is released under BSD 3-Clause license

Contact me
Email: [email protected]  ·  Discord: @.haise_san

About

A multipurpose bot for my private server.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages