Giter Club home page Giter Club logo

ref_bot's Introduction

ref_bot

A simple discord bot for keeping track of article links on a discord server.

Features

Automatic title, description, and tags scraping scraping

Increasingly specific searching by title contents, tags find1 find2

Idk :d

Requirements

This project uses python 3, discord.py, and sqlalchemy. You can check your python version by running python --version.

You can install discord.py and sqlalchemy with pip :

python3 -m pip install -U discord.py
python3 -m pip install -U sqlalchemy

Usage/installation

  1. Create a copy of config.ini named config.dev.ini. (you can change the naming in conf.py)
  2. Put your discord token next to token= and change any other options you'd like
  3. Run python3 setup_db.py, this will create the database for the bot.
  4. Run python3 ref_bot.py. You should see the following if the bot is running correctly:
ref_bot extension loading.
your_bot_name has connected to Discord!

Usage on discord

Commands :

  • !ref add <article_url> <tags...> - Adds a new article
  • !ref find <keywords...> - Searches for an article posted in the current channel using the specified keywords.
  • !ref find_all <keywords...> - Same as !ref find but posted anywhere
  • !ref id <id> - Gets the article with specified id
  • !ref delete <id> - Removes the article with specified id
  • !ref tag <id> <+tag -tag...> - Adds tags specified with + and removes tags specified with -
  • !ref update <id> - Automatically update the article from the url
  • !ref owners <id> - shows the users that added the articles to the channel

Examples :

  • !ref add https://site.com/articles/23 hashing crypto
  • !ref find hash
  • !ref tag 5 +passwords +practice -dolan
  • !ref delete 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.