Git Product home page Git Product logo

unregulated's Introduction

Unregulated

Unregulated is a Discord "self" bot, which provides a reliable method of storing messages in a JSON format.

For example: If an user is joined in a server and one of the channels receive a message it will be logged in a server specific folder as a JSON file named after the channel it was received in.

Warning

Discord is banning all self-bot users

A post on a forum has a discussion about why self-bots are getting banned, use this code at your own risk !

Installation

# Clone the repository
git clone https://github.com/grkek/unregulated.git
cd unregulated
# Create a new environment
python3 -m venv env
# Activate the environment
source env/bin/activate
# Install the Ultra JSON library
pip install ujson
cd ..
# Clone the dependency
git clone https://github.com/Rapptz/discord.py
cd discord.py
# Install the discord.py library
pip install -U .
cd ..
cd unregulated

Usage

Configuration

Before you can run the bot you need a token which can be obtained via your web-browsers local storage tab, give it a quick refresh and for a moment the token will show up after getting deleted again.

Open the config.py file and edit YOUR_TOKEN_HERE with your obtained token, then provide the server names in a such fashion:

configuration = {
    "token": "YOUR_TOKEN_HERE",
    "servers": [
        "MyServerName",
        "JoesServerName"
    ]
}

Keep in mind that all of the special characters are replaced by an empty space, for example in case of Jonathan-Mommas-Server you have to enter JonathanMommasServer and in case of Something+Weird you'll have to enter SomethingWeird and so on.

Running

You can run this script by:

python src/app.py

Data collection

The data which will consist of user details and the message will be stored in a server specific folder as a JSON file named after the channel it was received in.

The files are stored in the /messages/ directory.

unregulated's People

Contributors

grkek avatar

Stargazers

Decentralized Info avatar  avatar

Watchers

James Cloos avatar  avatar  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.