Giter Site home page Giter Site logo

andrewthetechie / err-topic-a-day Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 4.0 19 KB

An errbot plugin to post a topic a day to a channel for discussion

License: GNU General Public License v3.0

Python 100.00%
hacktoberfest errbot-plugin errbot-plugins

err-topic-a-day's Introduction

err-topic-a-day

An errbot plugin to post a topic a day to a channel for discussion

Configuration

topic-a-day reads its config from a combination of environment variables and config files. This is due to the complexity of expressing some config options as env variable strings.

Config options:

  • TAD_CHANNEL: str, channel name to use as your topic channel
  • TAD_SCHEDULE: str, schedule to post on, expressed as a crontab. This uses apscheduler, which starts its cron day counts on monday, rather than sunday
  • TAD_APSCHEDULER_CONFIG_FILE: str, optional. Path to a config file for AP Scheduler's config. If left blank, we setup a basic, working config
  • TAD_TZ: What timezone to set. Only used if TAD_APSCHEDULER_CONFIG_FILE is false.
  • TAD_ENABLE_WEBHOOK: bool, default false. If enabled, use a webhook + curl to perform posting. Allows using the AP scheduler sqlalchemy backend
  • TAD_WEBHOOK_URL, str, url for the Topic a day webhook. Defaults to localhost:3142/post_topic_rpc
  • AUTH_POST_WEBHOOK: bool, default True. If true, webhook only works if auth'd properly
  • AUTH_POST_WEBHOOK_TOKEN: str, default generated token. The token for our webhook auth

err-topic-a-day's People

Contributors

andrewthetechie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

err-topic-a-day's Issues

List shows topics having been posted on "None"

Previously posted topics:
bc19ea2a: What compliment do you still remember being given? -- Posted on None
a05ca71e: What makes a good neighbor? -- Posted on None
1452e8d4: What positive things happened because of COVID-19? This can to be you personally or to society -- Posted on None
ab7e1753: What is something that you find unforgiveable? -- Posted on None
633710b9: What is your favorite word or catch phrase? -- Posted on None
0ffebee2: What is your favorite meme? -- Posted on None
47d8035f: Who was your celebrity crush growing up? -- Posted on None
5b7c408e: Is a hot dog a taco? -- Posted on None

Bot spams channel if there's an issue

Had an issue where the bot was not in the channel. I investigated about 12 hours later, moved the bot into the slack channel, and it proceeded to spam a bunch of topic changes.

Investigate why this happened and fix it.

Come up with a better topic storage system

Currently we use my hacky implementation on top of errbot's storage. This could be replaced by something much better. Consider using an orm that can use sqlite as well as other external databases.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.