Code Monkey home page Code Monkey logo

redfoxbot's Introduction

codecov

BuildStatus: CircleCI

Официальный репозиторий телеграмм-бота Лиса

Сейчас поддерживаются проекты:

  • redfox
  • encounter
  • Dozor.lite
  • экипаж
  • lampagame
  • dozor classic

Установка

Клонируем репозиторий и устанавливаем зависимости

Для разворачивания проекта необходимы composer, npm, gulp, bower

git clone https://github.com/akeinhell/redfoxbot.git
cd redfoxbot
composer install
npm install # или yarn install
gulp build

Настраиваем Nginx

cp nginx.conf /etc/nginx/sites-available/redfoxbot.conf
ln -s /etc/nginx/sites-available/redfoxbot.conf /etc/nginx/sites-enabled/redfoxbot.conf
service nginx restart

#Настраиваем проект

cp .env.example .env

В Файле .env необходимо указать слеующие параметры

TELEGRAM_KEY=$TELEGRAM_KEY

Ключ для бота получаем тут

Конфиги для запуска приложения правим в .env файле

  • БД
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
  • Cache
CACHE_DRIVER=redis
SESSION_DRIVER=redis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
  • Other
BOT_NAME ="Redfox Telegram bot"

Необходимо накатить миграции ./artisan migrate

Разработка и тонкости проекта

  • Бот работает на hook'ах, соответственно для локальной разработки сейчас нет метода для инструмента
  • Все ваши Pull-Request'ы будут слиты и вылиты на production сервера в течении нескольких дней после Сode-Review
  • Я всегда готов ответить на все вопросы про бота и его логику, и тонкости реализации той или иной фичи
  • в проекте необходимо поддерживать единый стиль кода. [#code-style](Читать подробнее тут)

redfoxbot's People

Contributors

akeinhell avatar scrutinizer-auto-fixer avatar

Watchers

 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.