diff --git a/.gitignore b/.gitignore index 1dc8a82..2e3c5c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ env __pycache__ .vscode -config.py \ No newline at end of file +config.py +.idea +test.py \ No newline at end of file diff --git a/worker/pcr.py b/worker/pcr.py index 0c40fb8..c7d97a6 100644 --- a/worker/pcr.py +++ b/worker/pcr.py @@ -320,7 +320,7 @@ class Ans(StdAns): resultStar.append(2) resultName.append(choice(star2)) stones = 0 - colors = '' + colors = '[CQ:at,qq={}]\n'.format(self.uid) for each in range(len(resultStar)): if resultStar[each] == 3: stones = stones + 50 @@ -335,7 +335,7 @@ class Ans(StdAns): else:colors = colors + color + ' ' name = '' for each in range(len(resultName)): - if each == 4:name = name + resultName[each] + '\n' + if each == 4: name = name + resultName[each] + '\n' else:name = name + resultName[each] + ' ' name = name + '\n母猪石 +{} [CQ:face,id=108]'.format(stones) self.sendmsg(colors)