GithubHelp home page GithubHelp logo

idea-bot's Introduction

Highlights

telegram-bot-rb


Installation

  1. git clone https://github.com/ChangeInit/idea-bot

  2. Create a Telegram bot using @BotFather

  3. Setup your .env with the appropriate keys

  4. bundle install

  5. Configure your database in config/database.yml

  6. Create the database rails db:create

  7. On production rails telegram:bot:set_webhook to configure the webhook to communicate with Telegram. Or in development rails telegram:bot:poller to configure the poller.


When things get weird run rails db:reset

Configuration

Shrine used for simpler setup. You can do this in config/initializers/shrine.rb.

heroku production deployment

heroku run rake db:schema:load
heroku run rails telegram:bot:set_webhook

Heroku for hosting AWS S3 for file hosting

idea-bot's People

Contributors

nicksarafa avatar ejohnst2 avatar marckohlbrugge avatar

Watchers

James Cloos avatar

idea-bot's Issues

Remove /idea slash command

the /idea slash command sends a message to the group rather than prepend the message with the necessary command as expected

Daily idea reminder

"Hey y'all! An idea a day keeps the doctor away. Look around you, be inspired, snap a pic, log your idea!"

If user does not have any ideas from the day, set a cron job to call the one_idea method at a certain time of the day.

custom index view for ideas

Create an index.html that the /link directs the user to in order to see their ideas.

This is the users idea log.

Remove photo requirement

We currently require a photo to upload a new idea. We would like to experiment with the prospect of no longer requiring the photo.

how?

  • prepend your idea with /idea which then generates the idea from the text appended to the string after the /idea slash command

Create ideation challenges/prompts

create a way for ideabot to encourage ideation by prompting people with #ideachallenges throughout their day. Encouraging people to continue seeing the world through a lens of possibility.

Allow upvote of an idea

users can upvote ideas through an added inline button on each logged idea. Maybe this can help determine the idea of the week?

Allow upload of voice message

user should be able to post a voice message and have it recorded as an idea...

  • website will have to support audio playback

Mixup /ideas command

Options...

  1. remove
  2. only display the most recent ideas
  3. random assortment of others peoples ideas
  • returns bag of three random ideas
  1. return the link to the app

Ideating is a lonely existence
Does you day lack inspiration?


Hot Streaks! Con Fuego

Make it so that they can reach fire if they are on a roll!

If they have more than X amount of ideas in a day, they get some fire emojis.

unsubscribe from ThinkFish

a backslash command that ends the subscription on stripe and also removes them from the group and removes access to the bot.

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.