Coder Social home page Coder Social logo

ralph's Introduction

Ralph

Ralph is the LevelUp Platform team's lovable Zulip chat bot.

Usage

You'll need to set the following environment variables:

Name Description Example
BOT_NAME The name to which your bot will respond. Ralph
ZULIP_API_KEY Your Zulip bot's API key. 443e78ed81c758c6ebcbcfea
ZULIP_EMAIL Your Zulip bot's email. [email protected]
ZULIP_HOST Your Zulip server's hostname. example.zulipchat.com

These environment variables are required in a non-development environment:

Name Description Example
DATABASE_URL PostgreSQL connection URI. postgres://user:pass@host:port/database

These environment variables are optional:

Name Description Default
DB_STATEMENT_TIMEOUT PostgreSQL statement timeout. 30s
RALPH_ENV Ralph's environment. There must be a matching environment config file at config/environments/${RALPH_ENV}.rb. development

Then, install dependencies and start Ralph.

bundle install
bin/ralph

Contributing

Contributions are welcome!

To get started, create a .env file for your development environment and set your own Zulip credentials, and install gem dependencies.

cp example.env .env
bundle install

Create a development database and load the current schema.

bin/rake db:create
bin/rake db:schema:load

To run Ralph, use bin/ralph.

bin/ralph
# Connecting to example.zulipchat.com as [email protected]...

Before submitting a pull request, ensure your changes have adequate test coverage and adhere to the style guide.

bin/rspec
bin/rubocop

Console

You can open a Pry REPL with Ralph's application environment loaded, similar to Ruby on Rails' console.

bin/console

Database Migrations

To generate a new database migration, use the generate:migration Rake task.

bin/rake generate:migration[name_of_migration]
# Created db/migrations/20200510233313_name_of_migration.rb

See bin/rake -T for a list of other database Rake tasks, including db:migrate, db:migrate:status and db:rollback.

License

MIT

ralph's People

Contributors

dependabot[bot] avatar raws avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

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.