update 木鱼音频
This commit is contained in:
parent
c9eceaccf3
commit
cf098877c3
@ -36,7 +36,7 @@ public class WoodenFish extends Model {
|
|||||||
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
public void onMessage(Long qq, MessageEvent event, boolean isGroup) {
|
||||||
super.onMessage(qq, event, isGroup);
|
super.onMessage(qq, event, isGroup);
|
||||||
if(msg.contains("地狱笑话")){
|
if(msg.contains("地狱笑话")){
|
||||||
File file=new File("muyu.wav");
|
File file=new File("muyu.mp3");
|
||||||
if(file.exists()) {
|
if(file.exists()) {
|
||||||
OfflineAudio audio = Objects.requireNonNull(event.getBot().getGroup(qq)).uploadAudio(ExternalResource.create(file));
|
OfflineAudio audio = Objects.requireNonNull(event.getBot().getGroup(qq)).uploadAudio(ExternalResource.create(file));
|
||||||
MessageChainBuilder builder = new MessageChainBuilder();
|
MessageChainBuilder builder = new MessageChainBuilder();
|
||||||
|
Loading…
Reference in New Issue
Block a user