Skip to content
This repository has been archived by the owner on Sep 13, 2020. It is now read-only.

Commit

Permalink
Use only one include file
Browse files Browse the repository at this point in the history
  • Loading branch information
wRadion committed Aug 5, 2018
1 parent 295eabb commit ae028f6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 26 deletions.
4 changes: 0 additions & 4 deletions commands/include.rb

This file was deleted.

4 changes: 0 additions & 4 deletions ext/include.rb

This file was deleted.

16 changes: 16 additions & 0 deletions includes.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Database
require_relative 'data/db.rb'

# Config
require_relative 'config/discord_bot.rb'

# Extensions
require_relative 'ext/string'

# Lib

# Models

# Commands
require_relative 'commands/commands'

3 changes: 0 additions & 3 deletions lib/include.rb

This file was deleted.

14 changes: 2 additions & 12 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,8 @@
# Gems
Bundler.require(:default)

# Database
require_relative 'data/db.rb'
# Config
require_relative 'config/discord_bot.rb'
# Extensions
require_relative 'ext/include'
# Lib
require_relative 'lib/include'
# Models
require_relative 'models/include'
# Commands
require_relative 'commands/include'
# Includes
require_relative 'includes'

bot = Discordrb::Commands::CommandBot.new(DISCORD_CONFIG)
::Commands.register_in(bot)
Expand Down
3 changes: 0 additions & 3 deletions models/include.rb

This file was deleted.

0 comments on commit ae028f6

Please sign in to comment.