Skip to content

Commit

Permalink
fix: I'm sb
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefissure committed Sep 26, 2024
1 parent 6da87f2 commit 151fca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions ffxivbot/handlers/QQCommand_bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .QQEventHandler import QQEventHandler
from .QQGroupCommand_sonar import GLOBAL_SONAR_RANKS
from .QQGroupCommand_sonar import GLOBAL_SONAR_RANKS, get_server_from_keyword
from .QQUtils import *
from ffxivbot.models import *
import copy
Expand All @@ -12,19 +12,6 @@
import string
import os

def get_server_from_keyword(keyword):
if keyword == "国服" or keyword == '国':
return Server.objects.all()
elif keyword == "陆行鸟" or keyword == '鸟':
return Server.objects.filter(areaId=1)
elif keyword == "莫古力" or keyword == '猪':
return Server.objects.filter(areaId=6)
elif keyword == "猫小胖" or keyword == '猫':
return Server.objects.filter(areaId=7)
elif keyword == "豆豆柴" or keyword == '狗':
return Server.objects.filter(areaId=8)
return Server.objects.filter(name=keyword)


def handle_sonar_config(bot, parameters):
if len(parameters) == 0 or parameters[0] == "help": # /bot sonar (help)
Expand Down
2 changes: 1 addition & 1 deletion ffxivbot/handlers/QQGroupCommand_sonar.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import random

GLOBAL_SONAR_RANKS = [
"50S", "60S", "70S", "80S", "90S", "100S"
"50S", "60S", "70S", "80S", "90S", "100S",
"大象", "小电视", "海呱", "地呱", "雷马", "玉藻御前", "夜光花", "长须豹女王", "贝希摩斯", "奥丁", "蛇蛇", "松鼠"
]

Expand Down

0 comments on commit 151fca3

Please sign in to comment.