Pokemon Mystery Dungeon bot

Kylie Jo Swistak 347e0412eb Initial Setup 6 vuotta sitten
config 347e0412eb Initial Setup 6 vuotta sitten
.env.template 347e0412eb Initial Setup 6 vuotta sitten
.gitignore 347e0412eb Initial Setup 6 vuotta sitten
Gemfile 347e0412eb Initial Setup 6 vuotta sitten
Gemfile.lock 347e0412eb Initial Setup 6 vuotta sitten
README.md 347e0412eb Initial Setup 6 vuotta sitten
bot.rb 347e0412eb Initial Setup 6 vuotta sitten

README.md

Rotom Bot

The best ghosty-electric boy that runs your devices! He's also your friendly Pokemon Myster Dungeon Bot <3

Setup

This application runs using Ruby and Postgres. In order to run the bot locally you can create a bot in the discord developer portal and use it to test

Windows Users

  • Enable Developer Mode

    Open your settings, and navigate to Update and Security

    On the left, click For Developers, and check Developer Mode

  • Subsystem for Linux

    Next open the Control Panel, and select Programs and select Turn Windows features on or off on the side bar

    Search for Windows Subsystem for Linux, check it and wait for the install, then restart

  • Installing bash

    Now you can open a Command Prompt and type in:

    C:\Users\YourUserName> bash
    

    If it returns saying you have no installed distributions, open up the Microsoft Store and install Ubuntu (its free), and try again

    If it is asking for verification, reply with y and wait for the install

    Once prompted you can provide a username and password of your choice, you should then get a prompt:

    username@ComputerName: $
    

    Prereqs

    • Installing RVM and Ruby

    If you are on Windows, we need to install GPG, and get a public key , install RVM, access the command and then use it to install Ruby

    $ sudo apt-get install gpg
    $ gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    

    We can Install RVM and Ruby with the following:

    $ \curl -sSL https://get.rvm.io | bash -s stable
    $ rvm install ruby 2.6.3
    

    On Windows we need to access the command before we can use it, so use this command between the two above

    $ source ~/.rvm/scripts/rvm
    
  • Install Bundler and Bundle Install

    $ gem install bundler
    $ bundle install
    
    • Setup Postgresql

    For Installation and setup instructions visit postgresql.org

    Create a user and database

    Use the .env.template to make an .env with the appropriate information

    If you are making a development bot, use the information from the discord developer portal

    • Run the bot
    $ ruby bot.rb