Skip to content

Commit 8ffb8ea

Browse files
FionaDLABizzinotto
authored andcommitted
IIRR-13 Add ability for admin to change the channel
1 parent c9fa570 commit 8ffb8ea

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

app/lib/discord/events/set_channel.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def handle(event)
2626
display_settings(event)
2727
end
2828

29-
3029
private
3130

3231
def display_settings(event)

app/models/discord_server.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# To house data and logic related to the discord servers that the bot is added to.
2+
class DiscordServer < ApplicationRecord
3+
4+
end
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
class CreateDiscordServers < ActiveRecord::Migration[8.0]
2+
def change
3+
create_table :discord_servers do |t|
4+
t.string :discord_id
5+
t.string :system_channel_id
6+
t.string :send_questions_channel_id
7+
8+
t.timestamps
9+
end
10+
add_index :discord_servers, :discord_id, unique: true
11+
end
12+
end

0 commit comments

Comments
 (0)