Giter Site home page Giter Site logo

matthew-soft / madeline Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 153 KB

A Multifunctional SA-MP Discord Bot written in NAFF (python).

Home Page: https://www.madeline.my.id

Dockerfile 0.73% Python 98.85% Shell 0.40% Procfile 0.03%
dis-snek discord-bot python naff

madeline's Introduction

PROJECT DISCONTINUED!

Hey @everyone,

Sadly, due to big load of overtime work for me (@SanityZeroPercent) in my office. I personally don't have time to maintain the bot anymore.

So, I'm retiring this repository as PUBLIC REPOSITORY and giving @everyone a big oppoturnity to contribute for the bot source codes.

Enjoy it!

F.A.Q

Q: Will Madeline be deleted?

A: No, it will most likely be offline.

Q: What happened to the bot then?

A: It will be offline 'till idk when, sorry.


Madeline : The Discord Bot

Build Production CI pre-commit CI
Build Production precommit-action

A Multifunctional SA-MP Discord Bot written in NAFF (python).

Visit the official guide to get started.

Environment Variables

Some Keys are need to be provided in ".env" file, and some aren't. Please read this entirely so you didn't do anything wrong :) (or just cowabunga and replicate the "example.env" to ".env" and fill the required field.)

Some "secrets" are required for the bot to run properly. Here's what you need:

  • Discord token = get it from https://discordapp.com/developers/applications/

  • Google Cloud Vision Key = You need a Google Cloud Vision Key, which you can get here. The key is JSON Formatted, All you have to do is put your (json) key to the root folder and give exact name "gcp-key.json"

  • mongodb url = get yourself a free/paid/self-hosted mongodb database and link your project.

  • Sentry DSN = To make your bot environment "hassle-free", you should add sentry.io to your project, which is all you need to do is provide the DSN URL. Just create a sentry.io new account, create a new project, and link your project to your bot.

  • openweathermap token = Get your OWM token from here

  • top.gg token = assuming your bot is already published on top.gg, just provide the token.

Running the Application

There are multiple ways to launch the application.

Python

To start the bot with python, you first need to install the required packages with

pip install -r requirements.txt

Then, run:

python main.py

Docker-Compose

You can use the pre-made docker-compose by running:

docker-compose up

Docker

For most users, the use of docker-compose is highly recommended.

Nevertheless, you can import the pre-made Dockerfile into your own docker-compose or run it manually by with:

docker build -t madeline .

docker run -it madeline

Note: Make sure that you created a volume so that you local ./logs folder gets populated.

Additional Information

Additionally, this comes with a pre-made pre-commit config to keep your code clean.

It is recommended that you set this up by running:

pip install pre-commit

pre-commit install

madeline's People

Contributors

dependabot[bot] avatar gnztmpz avatar sanityzeropercent avatar

Stargazers

 avatar

madeline's Issues

To-Do

this to do list is our target today.

  • add give tags commands
  • add orphan tags commands
  • fix delete tags commands
  • fix admin-delete tags commands

a.k.a. superseded #1

v3 To-Do

All Pull request are now go into v3-dev branch.

I have something that I might get the ideas from carl-bot and notsobot. i put it here just in case.

carlbot

  • Poll Systems (easy, but later on)
  • Some stats commands (about, guild join + guild left listener)
  • ckc commands

notsobot

  • OCR commands (kinda hard, might focusing at easier tasks)

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.