mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-04 06:17:26 +00:00
[Change] MessageSender 调整包路径;
This commit is contained in:
15
src/main/java/net/lamgc/cgj/bot/message/MessageSender.java
Normal file
15
src/main/java/net/lamgc/cgj/bot/message/MessageSender.java
Normal file
@ -0,0 +1,15 @@
|
||||
package net.lamgc.cgj.bot.message;
|
||||
|
||||
public interface MessageSender {
|
||||
|
||||
/**
|
||||
* 发送消息并返回消息id
|
||||
* @param message 消息内容
|
||||
* @return 返回非负数则发送成功,
|
||||
* 返回0则发送器不支持消息Id,
|
||||
* 返回非0正整数则为消息Id,
|
||||
* 返回负数则为错误.
|
||||
*/
|
||||
int sendMessage(final String message);
|
||||
|
||||
}
|
@ -2,7 +2,6 @@ package net.lamgc.cgj.bot.message;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import net.lamgc.cgj.bot.BotCode;
|
||||
import net.lamgc.cgj.bot.MessageSender;
|
||||
import net.lamgc.cgj.bot.cache.CacheStore;
|
||||
import net.lamgc.cgj.bot.cache.HotDataCacheStore;
|
||||
import net.lamgc.cgj.bot.cache.LocalHashCacheStore;
|
||||
|
@ -1,6 +1,5 @@
|
||||
package net.lamgc.cgj.bot.message;
|
||||
|
||||
import net.lamgc.cgj.bot.MessageSender;
|
||||
import net.lz1998.cq.robot.CoolQ;
|
||||
|
||||
public class SpringCQMessageSender implements MessageSender {
|
||||
|
Reference in New Issue
Block a user