Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.88 KB

install.md

File metadata and controls

31 lines (23 loc) · 1.88 KB

Install CVTBot

Installation

  1. Compile the code by running the following command:

    msbuild src/CVTBot.sln /p:Configuration=Release

    This command creates CVTBot.exe and other files in the output directory at src/CVTBot/bin/Release.

  2. Create a directory for your bot, and move the contents of src/CVTBot/bin/Release to it.

  3. Edit CVTBot.ini: Set at least botnick.

  4. Set permissions and ownership correctly. This step is after the copying of files because group ownership is usually not preserved when copying files.

    • For personal use, chmod 644 *, chmod 600 CVTBot.ini, and chmod 755 CVTBot.exe.
    • For organisational use, chmod 664 *, chmod 660 CVTBot.ini, chmod 755 CVTBot.exe, and chgrp cvt.cvtservice *.
  5. You can now start the start the bot by running mono CVTBot.exe from your bot directory.
    The bot will join the specified feedchannel.

Upgrade

  1. Compile the code by running the following command:

    msbuild src/CVTBot.sln /p:Configuration=Release

    This command creates CVTBot.exe and other files in the output directory at src/CVTBot/bin/Release.

  2. Enter src/CVTBot/bin/Release.

  3. Remove Projects.xml and CVTBot.ini (to avoid accidentally overwriting your existing ones, later)

  4. Make sure the bot is not currently running (e.g. Botname quit on IRC, and check output of ps aux).

  5. Copy all remaining files in src/CVTBot/bin/Release to your existing bot directory. For example: src/CVTBot/bin/Release$ cp * /srv/cvt/services/cvtbot/CVTBotXYZ/

  6. Set permissions and ownership correctly. This step is after the copying of files because group ownership is usually not preserved when copying files.

    • For personal use, chmod 644 *, chmod 600 CVTBot.ini, and chmod 755 CVTBot.exe.
    • For organisational use, chmod 664 *, chmod 660 CVTBot.ini, chmod 755 CVTBot.exe, and chgrp cvt.cvtservice *.
  7. Start the bot.