Skip to content

Instantly share code, notes, and snippets.

@TheEpicFace007
Created October 14, 2022 21:14
Show Gist options
  • Save TheEpicFace007/e79941f78aa3aa4cc5a155db4adf90de to your computer and use it in GitHub Desktop.
Save TheEpicFace007/e79941f78aa3aa4cc5a155db4adf90de to your computer and use it in GitHub Desktop.
roblox bible bot
local _ = loadstring(game:HttpGet('https://raw.githubusercontent.com/TheEpicFace007/lua-lodash/master/lodash.lua'))()
local Players = game:GetService('Players')
local t = tick()
local nbOfChat = 0
local timeToWait = 0
local function chat(content)
if
if tick() - t <= 0.60 and nbOfChat < 5 and nbOfChat > 2 then
timeToWait = 10
end
wait(timeToWait)
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(content, "All")
t = tick()
if nbOfChat >= 5 then nbOfChat = 0 timeToWait = 0 end
end
local function askGod()
local ans = {
"Yes"; "No"; "It may be best for you not to know"; "Your question is beyond your mortal comprehension."; "Blasphemy! Ask no more."; "I do not care to entertain your trivial question.";
"You should be ashamed of what you are asking."; "Perhaps."; "I have nothing to say about it"; "I refuse to answer that"; "This is not a question befit for me, ask another."; "Try re-asking that question, I can't purely understand a thing you're saying.";
"A pity, made in my image yet couldn't ask a more reasonable question for me...";"Such foul words, I am ashamed of you";"Think twice of what you ask of me.";
"What you are asking me is blasphemy! Confess your sin to me or face your consequences";"You exist to suffer, no further comment.";"I didn't set fire to Gommorah for you to ask such a foolish question!";"Your question is why Judgement Day will come for us sooner than before.";"This question is beneath me, ask another!";
}
chat(ans[math.random(1, #ans)])
end
local function help()
chat("!ask god [question] - Ask God a question | !verse - Study the holy bible | !help - Show this help menu | !confess [sin], confess your actions to God | !pray [prayer] pray for something")
end
local function confess()
local ans = {"Your sin has been forgiven, rejoice!";"I am overjoyed you have acknowledged your sin, God shall forgive you.";"You are forgiven, be glad Jesus died for your sake.";"I can see your sin weighs heavily on you, God has forgiven you!";"This is a sin that can not be easily forgiven, I demand you say Glory To God 20 times!";"Your sin mocks the commandments put forth by Our Almighty God, 20 Holy Mary's!";"Your blasphemy ends here, pray Our Father and Holy Mary 30 times each right now!";"Your actions disgust our Lord";"Satan, smite " .. Player.Name .. " down for " .. Player.Name .. " has dared to defy God himself."};
chat(ans[math.random(1, #ans)])
end
local function pray()
local ans = {"Amen";"Your greed terrifies me, confess your sin so that I may judge you by typing !confess [describe your foul actions here]";"Your prayer will be answered, Hallelujah!";"Your prayer has been rejected for blasphemy! type !confess [your sin here] for judgement.";"I understand your feelings, it shall be done soon";"What you ask will be done, be patient my son";"Your prayer will be granted, when the time comes."}
chat(ans[math.random(1, #ans)])
end
local function shutup()
local ans = {"Do not say that out loud, ";"Do you really want me to cleanse your mouth with holy water?";"I will not tolerate you saying the words that consist of the letters 's h u t u p' being said in this server, so take your own advice and close thine mouth in the name of the Christian Roblox place owner.";"That is not how you treat the members of the Church,"}
chat(ans[math.random(1, #ans)])
end
local function verse()
local HttpService = game:GetService('HttpService')
local response = HttpService:JSONDecode(game:HttpGet("http://labs.bible.org/api/?passage=random&type=json"))
local verse = response[1].bookname .. " " .. response[1].chapter .. ":" .. response[1].verse .. " " .. response[1].text
chat(verse)
end
local function onChat(player, message)
if player == Players.LocalPlayer.Name then return end
message = string.lower(message)
if message:match(".*!ask.-god.*") then
askGod()
elseif message:match(".*!verse.*") or message:match(".!bible.*") then
verse()
elseif message:match(".*!help.*") then
help()
elseif message:match(".*!pray.*") then
pray()
elseif message:match(".*!confess.*") then
confess()
elseif string.find(message,"shut up") then
shutup()
end
end
-- setup on chat event
game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.OnMessageDoneFiltering.OnClientEvent:Connect(function(object) onChat(object.FromSpeaker, object.Message) end)
Players.PlayerAdded:Connect(function(NewPlayer)
local welcomeSentence = {
"Greetings " .. NewPlayer.Name .. ", study the bible to further your blossoming faith by chatting !verse";
"Welcome " .. NewPlayer.Name .. "! to Bibleblox! Study the bible with upmost vigor by chatting !verse";
"Welcome to the holiest place in Roblox " .. NewPlayer.Name .. ". Study the bible as soon as possible by chatting !verse";
"Feel free to ask any question to Our Almighty God by chatting !ask god [question]";
"Welcome to the most Christian place in Roblox " .. NewPlayer.Name .. ".";
function()
if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
return "Welcome " .. NewPlayer.Name .. " to the afternoon bible study session. Open your bible by chatting !verse."
elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
return "Welcome " .. NewPlayer.Name .. " to the night bible study session. Open your bible by chatting !verse."
elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
return "Welcome " .. NewPlayer.Name .. " to the morning bible study session. Open your bible by chatting !verse."
end
end;
function()
if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
return "Gosh! you're late to the afternoon bible study session! Open your bible by chatting !verse quickly!!"
elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
return "I can't believe you are, ahem, THIS late to the night bible study! Open the bible ASAP(chat !verse)"
elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
return "Oh my! You are late to the morning bible study session! Chat !verse to open the bible"
end
end;
function()
if os.date("*t").hour > 12 and os.date("*t").hour < 18 then
return "God will give you a second chance for making him wait " .. 18 - os.date("*t").hour .. " to listen your question(Chat !ask god to ask question) JUST DONT MAKE GOD WASTE HIS TIME"
elseif os.date("*t").hour > 18 or os.date("*t").hour < 5 then
return "God will give you a second chance for making him wait " .. os.date("*t").hour - 5 .. " to listen your question(Chat !ask god to ask question) JUST DONT MAKE GOD WASTE HIS TIME"
elseif os.date("*t").hour > 5 and os.date("*t").hour < 12 then
return "God will give you a second for making him wait " .. os.date("*t").hour - 5 .. " to listen your question(Chat !ask god to ask question) JUST DONT MAKE GOD WASTE HIS TIME"
end
end;
}
local sentence = welcomeSentence[math.random(1, #welcomeSentence)]
if type(sentence) == 'function' then
chat(sentence())
else
chat(sentence)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment