hachikou136 / chembot

A chemistry discord bot providing easy access to element data and quickly performs calculations.
MIT License
0 stars 0 forks source link

Chembot

This repository is forked from Chembot🐙

And the bot is available on chembot - Replit💪

Chembot is a chemistry discord bot built on the Python package chemlib that provides easy access to element data and quickly performs calculations.

main points fixed from origin repository🛠

Mainly changed to accommodate changing specification after discord.py version 2.0.

  1. dealt with changing specification about intents after discord.py version 2.0.(ref: what does 'TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'' mean and how do i fix it : discordbots)
  2. dealt with changing specification about a method Bot.load_extension after discord.py version 2.0.(ref: python - "RuntimeWarning: coroutine 'BotBase.load_extension' was never awaited" after updating discord.py - Stack Overflow)
  3. fixed to keep alive the bot to work at replit.
  4. stopped loading an extension quiz.py, because the extension did not work by an error about PyPDF.
  5. stopped using a file token.txt to set bot token for security reason to work as replit machine. and, using an environment variable via a replit feature secret instead.
  6. Implemented features served by rdkit library.

check the bot status🤖

my-bots-status

Commands

Command Prefix: -

help

Displays help message.

Usage: -help

help

elem

Displays properties of requested element by symbol.

Usage: -elem <symbol>

elements

cmpd

Gets the molar mass of a compound, and performs optional calculations.

Usage: -cmpd <formula/trival name>

Additional Parameters (accepts abbreviations):

cmpd