Skip to content

Commit

Permalink
use hjson
Browse files Browse the repository at this point in the history
  • Loading branch information
benx1n committed Aug 30, 2021
1 parent a430d14 commit 49d6850
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,5 @@ dmypy.json

# Pyre type checker
.pyre/
config.json
config.hjson
LocalSetu.db
File renamed without changes.
6 changes: 3 additions & 3 deletions setu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import json
import hjson
import random
import re
from nonebot.typing import State_T
Expand All @@ -19,8 +19,8 @@
from hoshino.typing import CQEvent, MessageSegment


with open('./hoshino/modules/LocalSetu/config.json') as json_data_file:
config = json.load(json_data_file)
with open('./hoshino/modules/LocalSetu/config.hjson','r', encoding='UTF-8') as json_data_file:
config = hjson.load(json_data_file)

api_key=config['token']['sauceNAO']
refresh_token=config['token']['refresh_token']
Expand Down

0 comments on commit 49d6850

Please sign in to comment.