Git Product home page Git Product logo

astreatss / ultimateinvestigator Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 363 KB

A bot made to help automate investigations during Danganronpa/Killing Game roleplays.

Home Page: https://ui.astrea.cc

License: Mozilla Public License 2.0

Python 99.73% Dockerfile 0.27%
discord discord-bot danganronpa danganronpa-rp investigator truth-bullets danganronpa-roleplay roleplay bot hacktoberfest

ultimateinvestigator's Introduction

Ultimate Investigator's Banner

Server Setup Guide Support Server Donate on Ko-Fi

A bot made to help automate investigations during Danganronpa/Killing Game RPs.

The bot relies on a user to find out a 'key word'/trigger in order to actually get the Truth Bullet. It's up to the people who use this to hint at the key words.

Links:

Copyright 2021-2024 AstreaTSS.

ultimateinvestigator's People

Contributors

astreatss avatar dependabot[bot] avatar pre-commit-ci[bot] avatar pyup-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ultimateinvestigator's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Swap out tortoise-orm with... something else

tortoise-orm is... not dead, per se, but it's pretty evident that it's essentially on maintenance-only mode. Its typehinting is also lackluster, and its feature set is sometimes limiting.

Ideally, we would switch over to prisma (the Python variant), as the Realms Playerlist Bot has done. It produces amazing typehints and is well supported.

The only real issue with Prisma is that my current database provider for this bot, Supabase (yes, under its free tier, only the Playerlist Bot pays for a database right now), provides a URL for connections under IPv4 that Prisma cannot handle (mostly because the URL is technically invalidly formatted). The IPv6 URL can be handle by Prisma, but IPv6 has issues on the computers I use to test and run the bot, so some workaround has to be found. I have ideas, but who knows.

If I can't find a workaround, another library will have to be found, ideally one that can support psycopg as well as the current asyncpg as I've heard that psycopg can handle the string better. An alternative is switching to another (free) database provider, which is becoming more tempting by the day, admittedly.

Add support for witness testimony Truth Bullets

These would, of course, not be triggered by a message, but probably by an admin noting how they've been found. This would allow admins to easily make posts for witness testimonies and perhaps add them into Truth Bullet calculations.

Use database instead of manual iterating for finding Truth Bullets

Currently, the bot loops through every Truth Bullet and alias that is from a specific channel to see if a message contains any Truth Bullet. This is... not good, so making one database query to do that would be better. Likely requires a raw query or a switch to Prisma.

Add ability to disable "Best Truth Bullet Finder" submessage

Users can already disable giving out a role for the best Truth Bullet finders, but having the message in general might seem weird. It should be simple enough to add a toggle to entirely remove it.

Also, while I'm at it: it seems like a good time to make the phrasing of "Truth Bullet Finder"/"Detective" more consistent.

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.