Giter Site home page Giter Site logo

dashwav / discordoragi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jameswolff96/discordoragi

6.0 1.0 3.0 3.22 MB

Discordoragi is a Discord bot which creates anime and manga links from MAL, Anilist, MangaUpdates and Anime-Planet when requested based on Roboragi.

License: GNU General Public License v2.0

Python 100.00%

discordoragi's Introduction

IF YOU NEED SUPPORT, JOIN THIS DISCORD SERVER AND PING DASHWAV

https://discord.gg/SNv9yKs

Discordoragi

Discordoragi is a Discord bot using the Minoshiro library which creates anime and manga links from MAL, Anilist, MangaUpdates and Anime-Planet when requested. This is a full port of the roboragi reddit bot to discord.

How do I get this on my server?

You can either use this link or you can set up a server with the bot running with your own credentials (although this will not pick up on any of the synonyms that are added to the main bot). Installation instructions below:

Installation

Dont do this right now lmao

How it works

Discordoragi uses discord.py (a Python library) to interface with Discord. It waits for messages from all of the servers it is allowed in and checks each of those for requests for the correct symbols - {}, {{}}, <>, <<>>, ][, ]][[. Once it's identified that it's being called, it takes the stuff between the braces and does a search for it in various anime/manga databases. Once it's got as much as it can find, the objects generated by the various databases are sent off to be formed into a reply. That then gets sent back to the channel it came from.

Current databases

  • MAL (Anime/Manga/LN)
  • Anilist (Anime/Manga/LN)
  • Kitsu (Anime/Manga/LN)
  • MangaUpdates (Manga)
  • Anime-Planet (Anime/Manga)
  • LNDB (LN)
  • NovelUpdates (LN)

discordoragi's People

Contributors

dashwav avatar jameswolff96 avatar mnmt avatar nihilate avatar orende avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discordoragi's Issues

] [ will return Tomodachi no Imouto ga Ore ni dake Uzai

A set of brackets with a space in them (] [ ) will return the LN Tomodachi no Imouto ga Ore ni dake Uzai.

This can be annoying, because sets of words in brackets [like] [this] causes the bot to respond even if the user dosn't want it to.

Screenshot:

image

Bot reacts to multiline brace pairs and empty brace pairs

When talking with someone about CSS issues, I posted a block of code that had braces in it, and discordoragi reacted with an X as if I'd tried to link an invalid anime. The same thing happened when I posted a message that just contained {}. These are cases where it should be clear the user's intent is not to link an anime, and I don't think the bot should react in these situations.

It would also be cool if the bot ignored all input inside inline or block code.

Exact message texts:

For the discord button, you'll want this:
```css
a[href="https://discord.gg/2Kk7rMa"] {
    display: block;
    text-align: center;
}
```
(you can then remove the `text-align` rule from the `::after` element)
also does discordoragi react to anything with {} even if it's multiline because that seems dumb
ooh I guess it just reacts on {}

License considerations

Nihilate changed the license for Roboragi to AGPLv3. Is this something that Discordoragi also wants to do?

Architecture proposal

Split argument acceptance + processing away from the search in order to enable multiple frontends. End goal would be to potentially rebase actual roboragi and then the telegram bot on this one.

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.