Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
use only 6 digits for group's qq
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed Nov 24, 2016
1 parent 326432c commit 23a2de0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions qqbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Author -- [email protected]
"""

QQBotVersion = "QQBot-v1.8.7"
QQBotVersion = "QQBot-v1.8.7.1"

import json, os, logging, pickle, sys, time, random, platform, subprocess
import requests, Queue, threading
Expand Down Expand Up @@ -297,7 +297,7 @@ def fetchGroups(self):
group = dict(uin=uin, qq=qq, name=name)
self.groups.append(group)
self.groupsDictU[uin] = group
self.groupsDictQ[qq] = group
self.groupsDictQ[qq%1000000] = group
s = '%d, %s, uin%d' % (qq, name, uin)
ss.append(s)
QLogger.info('群: ' + s)
Expand Down Expand Up @@ -540,7 +540,7 @@ def onPollComplete(self, msgType, from_uin, buddy_uin, message):
if args[0] == 'buddy':
uin = self.buddiesDictQ[n]['uin']
elif args[0] == 'group':
uin = self.groupsDictQ[n]['uin']
uin = self.groupsDictQ[n%1000000]['uin']
else:
uin = self.discussesDict[n]['uin']
except KeyError:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

setup(
name = 'qqbot',
version = '1.8.7',
version = '1.8.7.1',
py_modules = ['qqbot'],
entry_points = {
'console_scripts': [
'qqbot = qqbot:main',
]
},
install_requires = ['requests==2.7.0', 'certifi==2015.4.28', 'flask==0.11.1'],
install_requires = ['requests', 'certifi', 'flask'],
description = "QQBot: A conversation robot base on Tencent's SmartQQ",
author = 'pandolia',
author_email = '[email protected]',
url = 'https://github.com/pandolia/qqbot/',
download_url = 'https://github.com/pandolia/qqbot/archive/v1.8.7.tar.gz',
download_url = 'https://github.com/pandolia/qqbot/archive/v1.8.7.1.tar.gz',
keywords = ['QQBot', 'conversation robot', 'tencent', 'qq', 'web', 'network', 'python', 'http'],
classifiers = [],
)

0 comments on commit 23a2de0

Please sign in to comment.