Coder Social home page Coder Social logo

triadmaninit1 / jarvis-discord-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ethan-barr/carter-discord-example

3.0 1.0 1.0 107 KB

Carter Discord integration boilerplate with Moderation features.

License: MIT License

Python 100.00%
bots

jarvis-discord-example's Introduction

Carter Discord Bot Example

Getting started with Carter

  1. Head over to Carter's Controller and create an account if you havent allready.
  2. Create a Project and an agent - Follow the instructions that are given on the Controller to create your agent.
  3. Create an API key and Copy it to your clipboard.

Getting started with Discord Developer Portal

Step 1: Create a Discord Application

  1. Visit the Discord Developer Portal at https://discord.com/developers/applications.
  2. Log in with your Discord account.
  3. Click on the "New Application" button.
  4. Enter a name for your bot and click "Create."

Step 2: Create a Bot User

  1. In your application settings, navigate to the "Bot" tab on the left sidebar.
  2. Click on the "Add Bot" button.
  3. Confirm the action by clicking "Yes, do it!" when prompted.
  4. Under the "Token" section, click on the "Copy" button to copy your bot token. Keep this token secure, as it provides access to your bot.
  5. Turn on the following sliders to allow our bot to be operational:
  • PRESENCE INTENT
  • SERVER MEMBERS INTENT
  • MESSAGE CONTENT INTENT
  • PUBLIC BOT - That is optional

Step 3: Invite Your Bot to a Server

  1. In the Developer Portal, go to the "OAuth2" tab on the left sidebar.
  2. Under the "Scopes" section, select the "bot" checkbox.
  3. In the "Bot Permissions" section, choose the permissions your bot requires.
  4. Copy the generated OAuth2 URL.
  5. Open a new browser tab and paste the URL. Choose the server where you want to add the bot and authorize it.

Getting started with the source code

  1. Create an .env in the base directory it should look somehing like this:
DISCORD_TOKEN = ENTER TOKEN
BOT_PREFIX = CREATE A PREFIX
CARTER_TOKEN = ENTER CARTERAPI KEY
  1. Install Dependencies: Open your terminal and navigate to the directory containing the source code files. Run the following command to install the required dependencies:
pip install -r requirements.txt
  1. In bot.py you can customise the following:
  • Name of discord Bot >> line 15
  • Discord activity presence >>line 20
  • Name of discord bot in all lowercase >> line 52
  1. Open your terminal
  2. Run python bot.py to be able to run your bot

Contributing

If you find a bug or would like to suggest a new feature, please open an issue on the GitHub repository. Pull requests & Forks are also welcome.

Thanks to @TheKronis for the base template that I have expanded on & @Cipher58 as well for some development

Documentation

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Other information/Notes

This project will be having limited edits to it from me as the owner but still feel free to create Pull Requests. I will still autorise them and monitor this.

jarvis-discord-example's People

Contributors

ethan-barr avatar triadmaninit1 avatar dmachette avatar callumatcarter avatar

Stargazers

Tony Roy avatar  avatar  avatar

Watchers

Tony Roy avatar

Forkers

normvg

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.