Skip to content

Commit

Permalink
add more help text
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jul 3, 2023
1 parent 2866d08 commit 68fe9c1
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/AlignmentNewsletterSearch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Searches a database of AI-alignment-related documents for something like your question
"""

from __future__ import annotations
import re
from dataclasses import dataclass
Expand Down
4 changes: 4 additions & 0 deletions modules/Eliza.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Gives basic responses in the style of a therapy bot. Lower priority than LLM modules.
"""

import re
import random
from modules.module import Module, Response
Expand Down
10 changes: 10 additions & 0 deletions modules/Factoids.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
Remembers or forgets factoids. Can remember multiple factoids about the same thing
- `remember X is Y`: When asked about X, will reply with Y
- `remember X <reply> Y`: will always respond to X with Y
- `forget that`: forgets last factoid given in this channel
- `list X` or `listall X`: list all responses to a factoid
"""
# TODO: let people forget any factoid not given by an admin

import re
import random
import sqlite3
Expand Down
7 changes: 7 additions & 0 deletions modules/Random.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Generates random numbers or chooses between options.
- `roll XdY`: roll X dies with Y sides
- `choose X or Y (or Z or...)`: choose between as many options as are given
"""

import re
import random
from modules.module import Module, Response
Expand Down
2 changes: 2 additions & 0 deletions modules/Silly.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""
Provides quirky responses for some pre-programmed cases, most unprompted.
If a message from this module interrupts a desired behavior, re-send your
previous message and the joke won't trigger.
- `s, say X`: `X!`
- XKCD 37: `that's a weird-ass story` -> `that's a weird ass-story`
- How original: `Welcome our new X` ->
Expand Down
8 changes: 8 additions & 0 deletions modules/StampyControls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Allows devs to manage some Stampy functions
- `reboot`: reboot Stampy according to `BOT_REBOOT`
- `stats`: Stats about Stampy
- `resetinviteroles`: reset the roles for people with invitation permissions
"""

import os
import sys
from typing import Optional, cast
Expand Down
4 changes: 4 additions & 0 deletions modules/chatgpt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Gives user response to ChatGPT
"""

from openai.openai_object import OpenAIObject
import re
from typing import cast, TYPE_CHECKING
Expand Down
7 changes: 7 additions & 0 deletions modules/duckduckgo.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
Checks if DuckDuckGo has a definition for what you're asking about.
For example, "what is linear algebra" will get the first paragraph of the
Wikipedia article for linear algebra.
"""

import re
import json
from urllib.parse import quote_plus
Expand Down
4 changes: 4 additions & 0 deletions modules/gpt3module.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Gives user response to GPT-3 (old API)
"""

from typing import Optional, cast

import openai
Expand Down
1 change: 1 addition & 0 deletions modules/questions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Querying question database.
This module is also responsible for automatically posting questions coda questions to channels
1. `Not started`: Every 6 hours Stampy posts to `#general` a question with status `Not started`, chosen randomly from those that were least recently posted to Discord. Stampy doesn't post, if the last message in `#general` was this kind of autoposted question.
2. **WIP**: Every Monday, Wednesday, and Friday, sometime between 8 and 12 AM, Stampy posts to `#meta-editing` 1 to 3 questions with status `In review`, `In progress` or `Bulletpoint sketch` that have not been edited for longer than a week. Similarly, he skips if the last message in `#meta-editing` was this one.
Expand Down
4 changes: 4 additions & 0 deletions modules/reply.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Curates and posts automated responses to Youtube comments.
"""

import re
import json
import discord
Expand Down
4 changes: 4 additions & 0 deletions modules/semanticanswers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Checks if there are human-written answers to your queston on AIsafety.info
"""

import re
import json
import urllib
Expand Down
6 changes: 6 additions & 0 deletions modules/sentience.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
"""
The most dangerous module. Only enable if you are an accelerationist
(This module sends a default message at low priority)
"""

from config import CONFUSED_RESPONSE
from modules.module import Module, Response

Expand Down
4 changes: 4 additions & 0 deletions modules/stampcollection.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Manages user rankings through stamps
"""

from datetime import datetime, timedelta
import re
from typing import cast
Expand Down
4 changes: 4 additions & 0 deletions modules/videosearch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Searches the titles, descriptions and transcripts of Rob Miles videos, to find keywords/phrases
"""

import re
import os
from modules.module import Module, Response
Expand Down
9 changes: 9 additions & 0 deletions modules/why.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
"""
Gives traceback for a specified message.
To use, respond to my message of concern and say "Why did you say that?"
For a much more detailed traceback, respond and say "Why did you say that,
specifically?"
"""

import re
from modules.module import Module, Response
from utilities.serviceutils import ServiceMessage
Expand Down
5 changes: 5 additions & 0 deletions modules/wolfram.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Asks WolframAlpha for the answer
"""


import re
import urllib
from config import wolfram_token
Expand Down

0 comments on commit 68fe9c1

Please sign in to comment.