琳酱新版本,由锈强力驱动!
WIP
- waife module: graphviz and noto fonts
sudo apt install graphviz -y
sudo apt install -y --force-yes --no-install-recommends fonts-noto fonts-noto-cjk fonts-noto-cjk-extra fonts-noto-color-emoji ttf-ancient-fonts
$env:TELOXIDE_TOKEN="1234567890:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" && cargo run
TELOXIDE_TOKEN="1234567890:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" cargo run
-
Create a new module in
src/mods
, thenpub
a staticModule
. For example,pub static MODULE: Module = Module { kind: ModuleKind::Command(ModuleDescription { name: "dice", description: "<code>xdy</code> 抛掷 x 个 y 面的骰子", description_detailed: Some(concat!( "使用 <code>/dice xdy</code> 的格式,抛掷 x 个 y 面的骰子。\n", "结果返回 骰子总和: [每个骰子点数...]\n", "注意 x 最大不能超过 500,y 最大不能超过 4294967295" )), }), task: dice, };
-
Insert it into
crate::mods::MODULES
in topological order.
It's that simple!
列出琳酱使用的第三方开源组件的许可证:
src/assets/idiom.json
: modified from https://github.com/crazywhalecc/idiom-database/blob/master/data/idiom.json
MIT License
Copyright (c) 2021 Whale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.