Skip to content

Commit

Permalink
feat: pcr-luck
Browse files Browse the repository at this point in the history
  • Loading branch information
zzbslayer committed Sep 9, 2020
1 parent a84f496 commit ff545a0
Show file tree
Hide file tree
Showing 6 changed files with 916 additions and 4 deletions.
10 changes: 8 additions & 2 deletions kokkoro/config_example/__bot__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import importlib
from kokkoro import log

logger = log.new_logger('config')

BOT_TYPE="discord"
Expand Down Expand Up @@ -28,9 +29,14 @@
RES_DIR = '~/.kokkoro/res/'
RES_URL = '0.0.0.0'

def get_font_path(font_file):
return os.path.expanduser(os.path.join(RES_DIR, 'fonts', font_file))

FONT_PATH = {
"msyh": f"{RES_DIR}/fonts/Microsoft YaHei.ttf", # 微软雅黑
"simhei": f"{RES_DIR}/fonts/simhei.ttf" # 黑体
"msyh": get_font_path('Microsoft YaHei.ttf')# 微软雅黑
"simhei": get_font_path('simhei.ttf'), # 黑体
"mamelon": get_font_path('Mamelon.otf'),
"sakura": get_font_path('sakura.ttf'),
}

MODULES_ON = [
Expand Down
Loading

0 comments on commit ff545a0

Please sign in to comment.