ritwik12 / Virtual-Assistant

A linux based Virtual assistant on Artificial Intelligence in C
GNU General Public License v3.0
128 stars 95 forks source link

Fixing path to help.txt #87

Closed RoyMattar closed 4 years ago

RoyMattar commented 4 years ago

Response command to "help" request has been changed from: less /home/username/Virtual-Assistant/help.txt to: less utils/help.txt

  1. Using an absolute path for 'help.txt' will likely lead to errors in case the user doesn't customize the "HOME_DIR" in the configuration file 'config' (editing 'username' to actual username).
  2. Also, absolute path is unnecessary and a relative path may be used instead.
  3. Finally, this edit reflects the last update which moved 'help.txt' to 'utils' directory.
RoyMattar commented 4 years ago

Travis CI build failed since gcc compilation command does not include compilation and linkage of 'init_config.c' (it seems that some previous update has changed '#include init_config.c' to '#include init_config.h').

ritwik12 commented 4 years ago

@RoyMattar I updated that too, but it is still fetching from the old travis configuration. Restarted build several times.

ritwik12 commented 4 years ago

@RoyMattar Code works with gcc main.c src/init_config.c $(pkg-config --libs --cflags libcurl) -lssl -lcrypto -ljson-c -std=gnu11

ritwik12 commented 4 years ago

@RoyMattar Travis build still states gcc main.c $(pkg-config --libs --cflags libcurl) -lssl -lcrypto -l json-c -std=gnu11 whereas I have changed it to gcc main.c src/init_config.c $(pkg-config --libs --cflags libcurl) -lssl -lcrypto -ljson-c -std=gnu11 around 15-30 minutes back.

ritwik12 commented 3 years ago

@all-contributors please add @RoyMattar for code

allcontributors[bot] commented 3 years ago

@ritwik12

I've put up a pull request to add @RoyMattar! :tada: