mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 05:07:19 +09:00
Improve AI
This commit is contained in:
parent
75fee2b753
commit
1bf139b204
@ -28,7 +28,7 @@ export default class EmojiModule implements IModule {
|
||||
public install = (ai: 藍) => { }
|
||||
|
||||
public onMention = (msg: MessageLike) => {
|
||||
if (msg.text && msg.text.includes('占')) {
|
||||
if (msg.text && (msg.text.includes('占') || msg.text.includes('運勢'))) {
|
||||
const date = new Date();
|
||||
const seed = `${date.getFullYear()}/${date.getMonth()}/${date.getDay()}@${msg.userId}`;
|
||||
const rng = seedrandom(seed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user