wiki:CurrentFunctions

Version 2 (modified by xsabol, 7 years ago) (diff)

--

List of functions chatbot is currently capable of:

  • reacting to ping - 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"

source:constants.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)