Frequently Asked Questions

Q: What python version do I need to run the bot?

A: Anjani only support Python 3.9 or higher. If you use another version, there will be some errors. If you want to use the exact same dependencies as Anjani used, You can run the bot with Poetry.

Q: Error: Directory '.' is not installable. File 'setup.py' not found.

A: This common error is caused by an outdated version of pip. This is a relatively new standard, so a newer version of pip is necessary to make it work.

Upgrade to pip 19 to fix this issue: pip3 install -U pip

Q: What is SP_TOKEN & SP_URL?

A: This config is used exclusively for Anjani to download our model of spam detection.

Q: How can I use the Spam prediction in my bot?

A: Spam Prediction is an exclusive plugin for Anjani. Any fork from this repo won't benefit any of spam prediction. The bot will still running well even if it doesn't have this plugin. You might see

INFO  |  bot      |  Unloading plugin 'SpamPredict' (SpamPrediction) from 'anjani/plugins/spam_prediction.py'

on the log output. You can just ignore it, those log won't affect other plugins.

*We might publish our REST API for the spam prediction in the future but we won't give any certainty about this.