An internet relay chat robot and web-based graphical user interface, dance event, and other things mashed together

root 2cd75ceea1 Installation steps improved пре 6 година
rotbot 2cd75ceea1 Installation steps improved пре 6 година
website 2cd75ceea1 Installation steps improved пре 6 година
.gitignore c5f25183a6 Lots of work & RotBot networks forms and pages пре 6 година
README.md 2cd75ceea1 Installation steps improved пре 6 година
package.json 48342d35e8 a bunch of work пре 6 година
requirements.txt 2c0f150310 Lots of rotbot refactoring пре 6 година
semantic.json 48342d35e8 a bunch of work пре 6 година

README.md

Scope

Django project, without virtual environment.

Hint, to create a virtualenv in the current dir: virtualenv --python=python3.7 . This probably requires you to have built python3.7 manually and have debian packages installed: python3-virtualenv python-virtualenv

Then activate the virtenv: source bin/activate To later deactive: deactivate

Prerequisites

Python 3.7.4

Older versions might work, development environ and runtime environment run Python-3.7.4 Currently newer then in the repo's, if that's still the case, you might have to compile and built it yourself.

If you notice you can' t use ssl when using pip, you should have installed libssl-dev before building python, or any of the following packages: libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

System packages needed for psycopg2

Install either postgresql-server-dev-X.Y or libpq-dev: sudo apt install...

Python packages

Install required pyton packages: pip3 install -r requirements.txt

Postgres database with user.

Fill in the passwords, don't change the database name, it's hardcoded in pyRot, for now.

  1. sudo apt install postrgresql
  2. sudo su - postgresql
  3. psql
  4. `CREATE ROLE website WITH LOGIN PASSWORD '';
  5. CREATE DATABASE website WITH OWNER = website;
  6. CREATE ROLE pyrot WITH LOGIN PASSWORD '';
  7. GRANT ALL ON DATABASE website TO pyrot;

Settings file.

For now, set the database authentication details in the following files:

  1. website/website/settings.py
  2. rotbot/bot.py

Create the database tables.

  1. cd website
  2. python manage.py makemigrations
  3. python manage.py migrate

Testing the project.

webgui

  1. cd website
  2. python manage.py runserver

pyRot

The pythonic version of RotBot, there have been 5 earlier versions including winRot and javaRot.

  1. cd rotbot
  2. python bot.py 1 Where 1 is the ID of the server database record.

Edeting the look of the webgui

Build Fomatic-ui 2.7.8

Requirements: NodeJS 10.15.3 & NPM 6.4.1

On debian: sudo apt install npm