List of functions officebot is currently capable of. Prepend the commands with @officebot
:
- reacting to ping (just
@officebot
) - pinging the bot with no arguments posts message that contains:- time period of messages
- top 5 users by message count
detailed
- message posted by the bot with keyword "detailed" used in the ping results in:- time period of messages
- all users sorted by message count
overview
- message posted by the bot with keyword "overview" used in the ping results in:- ammount of users, channels, system and non-system messages
- time period of messages for each channel
- top 5 users by message count for each channel
- when combined with "detailed" keyword: all users sorted by message count
channel
- followed by name of the channel results in message that contains:- time period of messages for that channel
- top 5 users by message count in that channel
- can also be combined with "detailed"
user
- followed by name of the user results in message that contains:- ammount of system/non-system massages for user in this channel
- with detailed flag: ammount of system/non-system messages for each channel in the workspace
- can also be combined with "overview" which yields the same results as in "detailed" but with workspace statistics at the beginning
language
- uses langid (Python module for language classification), results in:- most frequently used language in conversation
- list of used languages followed by frequency
time
- modifier- takes 1 parameter which represents how far behind should chatbot look in the conversation
- still not fully implemented
source:officebot_stable/config.py - parameters
- USER_TOKEN and BOT_TOKEN - both tokens are necessary for bot to function
- SLACK_NAME - name of the chatbot (default="OfficeBot")
- SOCKET_DELAY - time interval between checking new events in workspace (default=1 second)
- CACHE_UPDATE_DELAY - frequency of updating/saving cache info
- MAX_USER_COUNT_UNDETAILED - determines how many user positions will be shown in undetailed view (default=5)
- MAX_USERS_IN_LINE - maximum ammount of users in one line (default=5)
Last modified 6 years ago
Last modified on Feb 26, 2019, 11:47:53 PM