Code Monkey home page Code Monkey logo

cross-chat's Introduction

Cross-chat bot for Discord

This is just an example of a cross-chat bot for anyone who wants to know how it works / host one themselves.

This bot is also one of my first projects in Python, so if anything can be improved be sure to let me know.

Credit goes to the many Stack Overflow questions that have helped me in figuring out what is needed to make it work!

Commands

The commands included are as follows:

  • .setchannel = sets the cross-chatting channel to the one that the command is sent in
  • .mod (user) and .unmod (user) = mods and unmods a user (moderators have access to the blacklist commands, only the bot owner can send .mod and .unmod)
  • .blacklist (user) and .unblacklist (user) = blacklists and unblacklists a user (bans them from cross-chatting)

These commands (and other stuff) are explained in the bot.py file.

Running the bot

(The three .json files in this repo are necessary for the bot to function.)

In the bot.py file, replace 'YOUR BOTS TOKEN HERE' with the bot token you got from creating your bot here.

You can then run the bot.py file by sending python bot.py in a command prompt window / terminal (you should also install Python (and any missing modules indicated at the beginning of the bot.py file) if you haven't already; I used Python 3.8)

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.