arise-project / checklist_bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

checklist_bot

bot in emulator

"Buy Me A Coffee"

Setup on Windows

  1. create oracle account

  2. install java

https://www.oracle.com/java/technologies/javase-jdk11-downloads.html

  1. Add system environment variable:

JAVA_HOME C:\Program Files\Java\jdk-11.0.10

  1. Add java bin to PATH environment variable

C:\Program Files\Java\jdk-11.0.10\bin

  1. Create a new directory C:\Gradle

  2. Download Gradle binary

6.1 Windows

https://gradle.org/releases/

Copy Gradle content to c:\Gradle

Add gradle bin to PATH environment variable

C:\Gradle\bin

6.2 Ubuntu 21.04

VERSION=6.5.1 wget https://services.gradle.org/distributions/gradle-${VERSION}-bin.zip -P /tmp

sudo unzip -d /opt/gradle /tmp/gradle-${VERSION}-bin.zip

sudo ln -s /opt/gradle/gradle-${VERSION} /opt/gradle/latest

sudo nano /etc/profile.d/gradle.sh

/etc/profile.d/gradle.sh

export GRADLE_HOME=/opt/gradle/latest export PATH=${GRADLE_HOME}/bin:${PATH}

sudo chmod +x /etc/profile.d/gradle.sh

source /etc/profile.d/gradle.sh

  1. Install nodejs

Use option to automatically install necessary tools

Press enter to inhird paries in opened termanal

https://nodejs.org/dist/v14.16.0/node-v14.16.0-x64.msi

  1. install Microsoft Bot Framework Emulator

Use: anyone who use this comuter option

https://github.com/microsoft/BotFramework-Emulator/releases

  1. install git for windows

  2. Open Git Bash Here for folder menu

  3. Create woring directory

mkdir c:\my
cd c:\my\

  1. Clone repository in terminal

git clone https://github.com/arise-project/checklist_bot.git

  1. Open cmd

  2. cd c:\my\checklist_bot\core

  3. Build core for bot

gradle build

  1. cd c:\my\checklist_bot\ypbot

  2. Install bot dependancies

npm install

  1. Stat bot

npm start

  1. Run Microsoft Bot Emulator

  2. Open bot for url

http://locahost:3978/api/messages

  1. Click configure ngrok

  2. Uncheck Bypass ngrok to local address

  3. Try send command to bot

statistics

Read and save test

gradle run --args="read_text_file 'English for Career Development' /home/eugene/Documents/English_for_Career_Development set_battr NOTE_692302932 attr1 save_storage /home/eugene/Documents/text.json statistics"

##Merge with file changes

Create jar

gradle clean fatJar

gradle run --args="read_text_file 'English for Career Development' /home/eugene/Documents/English_for_Career_Development read_text_file 'English for Career Development' /home/eugene/Documents/my_changes save_storage /home/eugene/Documents/text.json"

cd build/libs/

java -jar -Xmx512M --illegal-access=warn checklist_bot-all-1.0.jar

https://sandbox.evernote.com

gradle run --args="connect_everynote list_enotebooks list_all_enotes list_enotes_for_notebook eat" gradle run --args="connect_everynote read_enote plov statistics save_storage 1.xml"

About

License:MIT License


Languages

Language:HTML 78.8%Language:JavaScript 12.9%Language:Java 5.8%Language:CSS 1.9%Language:C# 0.5%