GithubHelp home page GithubHelp logo

calytic / oxide.ext.discord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kirollos/oxide.ext.discord

0.0 0.0 0.0 9.5 MB

Discord extension and integration

Home Page: https://umod.org/extensions/discord

License: MIT License

C# 100.00%

oxide.ext.discord's Introduction

About

Oxide.Ext.Discord is an Oxide extension which acts as a bridge between Oxide and the Discord API.

Should you encounter a problem or bug with the extension, please feel free to create an issue here. Try to include as much detail as possible, including steps to reproduce the issue. A code example is highly appreciated.

Upgrading to version 2.0.0

Before upgrading to version 2.0.0 make sure all the discord extension plugins you plan to use support the new version. Plugins that were made for version 1.0.0 are not compatible with version 2.0.0.

Installation

To install the extension to your Oxide server, you must follow a few simple steps:

  1. Open the server files, and navigate to the "Managed" folder (eg. "RustDedicated_Data/Managed")
  2. Download the latest release.
  3. Copy the "Oxide.Ext.Discord.dll" file into your "Managed" folder.
  4. Restart your server!

Developer

If you would like to create plugins for the extension please Click Here to learn more
If the link doesn't work please try the readme on the github page

Getting your API Key

An API key is used to authenticate requests made to and from Discord.

Note: DO NOT SHARE YOUR API KEY!
Sharing your key may result in punishments from Discord (including a platform-wide ban) if the token is used to abuse the API.

Obtaining an API Key:

  1. Visit the official Discord Developers page here: Discord Developer Documentation
  2. Click "New App".
  3. Name your app and click create!
  4. You will now be redirected to your created app. Click on "Bot" on the left hand side and then "Add Bot".
  5. A) Under the newly created bot section, Enter the username for your bot and upload an icon.
    B) Then enable the Presence and Server Members Intent and Message Content Intent.
    C) To get your Discord API Token click on the "Copy" button.
    D) This is the token that is used by discord extension plugins.
  6. A.Next we're going to setup the permissions that bot has in your Discord Server.
    B.Click on OAuth2 on the left hand side.
    C. Scroll down till your see scopes and permissions.
    D. Under Scope select "Bot".
    E. (Optional) Select "applications.commands"
    F. Under permissions select which permissions that bot should have.
    G. Once you have all of this selected click on the copy button.
    (Optional) application.commands selection
  7. Now it's time to add your new bot to your guild! Paste the link from the previous step into the url section of your browser. Select which Discord Server you want to invite the bot into and continue and then authorize.
  8. Your bot will now be in your discord server.

Configuration

The discord extension configuration can be found at oxide/discord.config.json. The config allows you to modify the command prefixes for commands that use the discord extension command library.

{
  "Commands": {
    "Command Prefixes": [
      "/",
      "!"
    ]
  }
}

Contributing

Want to contribute? Create a fork of the repo and create a pull request for any changes you wish to make!

oxide.ext.discord's People

Contributors

dassjosh avatar dylanzemlin avatar emmanuelvlad avatar features-not-bugs avatar kirollos avatar psychotea avatar slut avatar slydelix avatar trickyyy avatar umod-org[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.