• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

DXsmiley/LatexBot: Discord bot that renders LaTeX equations.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

DXsmiley/LatexBot

开源软件地址(OpenSource Url):

https://github.com/DXsmiley/LatexBot

开源编程语言(OpenSource Language):

Python 93.8%

开源软件介绍(OpenSource Introduction):

This project has been halted in favour of MathBot. I will still look at and accept pull requests, however it is not under active development.

Discord LaTeX Bot

This is a bot for Discord that automatically renders LaTeX formulas.

Invocation

By default, the bot can be invoked with !tex [latex code]. Using !help or !help tex will private message the help.

Example: !tex \sqrt{a^2 + b^2} = c

Running

To run the bot, you need Python3 and discord.py.

Running the bot for the first time will produce the settings.json file. You should edit this.

Settings

Login

You need either an email and passsword to login or a bot token. You can read more about that here

If you're using an email and password, under "login_method", change "token" to "account"

Under "login", if you're using the account login method, change "email" and "password" to their respective value . If you're using a bot token, set "token" to be the token that discord auto generated for you.

Channels

The list of servers and channels that the bot may access. The rules are as follows:

  1. If the whitelist is empty, the bot may access all channels on all servers.
  2. If the whitelist is not empty, the bot may access only the servers on the whitelist.
  3. The bot may not access any server on the blacklist.
  4. The bot may access any channel on the whitelist.
  5. The bot may not access any channel on the blacklist.

Rules with larger numbers overrule the smaller ones.

Renderer

remote will use an external server to render the LaTeX. I do not own or maintain this server. Consider finding a different server. If too many people abuse it, it will be shut down.

local will attempt to use the programs latex and dvipng to render the LaTeX locally.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap