Git Product home page Git Product logo

archive-discord_bots's Introduction

discord-bots

Discord Bots!

Bots can and should:

  • Interact on the server
  • Track member stats
  • Do cool things
    • Music
    • Pictures

Table of Contents

Usage

Add the Bot to Your Server

Follow the guide here

  • Starting a server
  • Creating a bot on the Discord Dev Portal
  • Adding the bot to your server
    • Permissions
  • Getting started with Discord Bots in python

Download the repo

Use one of the following or just download the .zip here.

> gh repo clone XDwightsBeetsX/discord-bots
> git clone https://github.com/XDwightsBeetsX/discord-bots.git
  • Most will need to simply install the discord python API:

    > pip install discord
  • You can also make sure you got it all (it's not much):

    > pip install requirements.txt

Add Your Discord Secrets

  • Store tokens/keys in a folder like keys
    • Add your folder to the .gitignore to keep your key(s) safe
    • Add files like keys/dwight.txt
    • Parse these in with the bot using utils/Parsing

Run the Bot(s)

Easily run bots like any other python script!

> python <bot-name>.py

The first bot!

Discord Command Info
!help Prints off a list of available commands.
!dwight Messages: "Bears, Beets, Battlestar Galactica"
!message_count Dwights lets you know how many messages have been sent.
!member_count Dwight tells you how popular your server is

A template for making new bots.

Offers some skeleton methods:

  • __main__
  • run()
  • sendMessage(message)
  • writeStatsToFile()
  • logLine(line)

with reference to: realpython's tutorial

links: Discord Developer Portal

archive-discord_bots's People

Contributors

xdwightsbeetsx 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.