Added Lists(Photos, Phrases), and the "truth" command.
This commit is contained in:
34
src/commands/truth.rb
Normal file
34
src/commands/truth.rb
Normal file
@@ -0,0 +1,34 @@
|
||||
# cheeseBot
|
||||
# Copyright (C) 2026 Eri (csxkdv/nxkdv) nxkdv@thenight.club
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
require_relative '../lists/cheese_of_truth'
|
||||
|
||||
module Commands
|
||||
module Truth
|
||||
extend self
|
||||
|
||||
def register(bot)
|
||||
cmd_key = :truth
|
||||
cmd_desc = "The Cheese of Truth. Get a random phrase that's 100% the truth."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content: Lists::CHEESE_OF_TRUTH.sample)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
8
src/lists/cheese_of_truth.rb
Normal file
8
src/lists/cheese_of_truth.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
module Lists
|
||||
CHEESE_OF_TRUTH = [
|
||||
"""[Immigrants cause cancer.](https://youtube.com/shorts/S9AgVFNOibs?si=X2XV8E3dch6B2Cqj)
|
||||
(This is just a reference to the vine.)""",
|
||||
|
||||
].freeze
|
||||
end
|
||||
|
||||
24
src/lists/cheese_photos.rb
Normal file
24
src/lists/cheese_photos.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
module Lists
|
||||
CHEESE_PHOTOS = [
|
||||
"https://th.bing.com/th/id/OIP.cOvvr0w2LI04ck2r8yKDogHaEK?pid=ImgDet&rs=1",
|
||||
"https://cdn.cnn.com/cnnnext/dam/assets/150529121116-swiss-cheese-live-video.jpg",
|
||||
"https://th.bing.com/th/id/OIP.4FdvM8-87v5F4Fk-MGGX0gAAAA?pid=ImgDet&w=300&h=300&rs=1",
|
||||
"https://img.static-rmg.be/a/view/q75/w718/h/1801996/gruyere-jpg.jpg",
|
||||
"https://th.bing.com/th/id/OIP.BBxFgPD3rDD14sfFes0iNAHaHa?pid=ImgDet&w=1250&h=1250&rs=1",
|
||||
"https://th.bing.com/th/id/OIP.ikZUFeqM9tvZzsENF2DuFAAAAA?pid=ImgDet&w=306&h=369&rs=1",
|
||||
"https://stat.ameba.jp/user_images/20190108/08/golbahorn-mejirobach/b7/d0/j/o0661047314335317934.jpg",
|
||||
"https://th.bing.com/th/id/OIP.DRetaM1i8hMsRE5CmRGgfgHaFj?pid=ImgDet&rs=1",
|
||||
"https://cdn1.vox-cdn.com/uploads/chorus_asset/file/2887320/diet_snacks_cheese.0.jpg",
|
||||
"https://www.drgourmet.com/images/food/swisscheese.jpg",
|
||||
"https://th.bing.com/th/id/OIP.kKbhM1VNblGOBtwadXis7AHaHW?pid=ImgDet&w=620&h=615&rs=1",
|
||||
"https://www.babyswiss.com/content/images/thumbs/0000051_2lb-baby-swiss-2lb-premium-swiss-combo.jpeg",
|
||||
"https://www.elreporte.com.uy/wp-content/uploads/2015/06/queso-10407.jpeg",
|
||||
"https://cdn.tasteatlas.com/images/social/e9ef14798ff84fa1afc705b034c18554.jpg",
|
||||
"https://images-prod.healthline.com/hlcmsresource/images/AN_images/healthiest-cheese-1296x728-swiss.jpg",
|
||||
"https://upload.wikimedia.org/wikipedia/commons/d/d9/Gruyere_alpage_th_wa.jpg",
|
||||
"https://www.cartmelcheeses.co.uk/wp-content/uploads/2021/05/IMG_20210523_131813-scaled.jpg",
|
||||
"https://post.healthline.com/wp-content/uploads/2022/04/swiss-cheese-1200x628-facebook-1200x628.jpg",
|
||||
"https://images.theconversation.com/files/316919/original/file-20200224-24701-1lk36vg.jpg?ixlib=rb-1.1.0&q=45&auto=format&w=1200&h=1200.0&fit=crop",
|
||||
"https://dfwblobstorage.blob.core.windows.net/ewcmediacontainer/eatwisconsincheese/media/content/cheesemasters-2019/swiss-cheese-header_2.jpg",
|
||||
].freeze
|
||||
end
|
||||
Reference in New Issue
Block a user