From 87bb64ec1c8cbc9c904a1edbf63fae40cd47cca9 Mon Sep 17 00:00:00 2001 From: VetheonGames Date: Sun, 11 Feb 2024 10:34:57 -0700 Subject: [PATCH] Push 2 Update Gemfile with the rest of depends Write basic skeleton for the runner write default configs --- .rubocop.yml | 3 +++ Gemfile | 12 ++++++------ Gemfile.lock | 2 ++ bin/runner.rb | 11 +++++++++++ config/api_keys.yml | 2 ++ config/discord_config.yml | 1 + 6 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..225cc31 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,3 @@ +AllCops: + TargetRubyVersion: 3.2 + NewCops: enable diff --git a/Gemfile b/Gemfile index b4af045..baec483 100644 --- a/Gemfile +++ b/Gemfile @@ -1,13 +1,13 @@ # frozen_string_literal: true -source "https://rubygems.org" +source 'https://rubygems.org' -# gem "rails" +gem 'discordrb', '~> 3.5' -gem "discordrb", "~> 3.5" +gem 'sequel', '~> 5.77' -gem "sequel", "~> 5.77" +gem 'sqlite3', '~> 1.7' -gem "sqlite3", "~> 1.7" +gem 'httpparty', '~> 0.2.0' -gem "httpparty", "~> 0.2.0" +gem 'dotenv', '~> 2.8' diff --git a/Gemfile.lock b/Gemfile.lock index 09662df..5556f56 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,6 +11,7 @@ GEM discordrb-webhooks (3.5.0) rest-client (>= 2.0.0) domain_name (0.6.20240107) + dotenv (2.8.1) event_emitter (0.2.6) ffi (1.16.3) http-accept (1.7.0) @@ -51,6 +52,7 @@ PLATFORMS DEPENDENCIES discordrb (~> 3.5) + dotenv (~> 2.8) httpparty (~> 0.2.0) sequel (~> 5.77) sqlite3 (~> 1.7) diff --git a/bin/runner.rb b/bin/runner.rb index e69de29..cd46822 100644 --- a/bin/runner.rb +++ b/bin/runner.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +# bin/runner.rb +require_relative '../lib/bot' + +# Load environment variables if using dotenv +require 'dotenv' +Dotenv.load + +# Start the bot +Bot.new.run diff --git a/config/api_keys.yml b/config/api_keys.yml index e69de29..af62091 100644 --- a/config/api_keys.yml +++ b/config/api_keys.yml @@ -0,0 +1,2 @@ +virus_total: YOUR_VIRUSTOTAL_API_KEY +opswat: YOUR_OPSWAT_API_KEY diff --git a/config/discord_config.yml b/config/discord_config.yml index e69de29..176ccc0 100644 --- a/config/discord_config.yml +++ b/config/discord_config.yml @@ -0,0 +1 @@ +token: YOUR_DISCORD_BOT_TOKEN