Skip to content

Commit

Permalink
Update for 10.2.0, 3.4.3, 1.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Nov 25, 2023
1 parent 72b2fe6 commit 46fc408
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 21 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: BigWigsMods/packager@master
- uses: actions/checkout@v3
with:
args: -g classic
fetch-depth: 0

- uses: BigWigsMods/packager@master
- uses: BigWigsMods/packager@v2
# automatically generates game type specific TOC files
with:
args: -g bc

- uses: BigWigsMods/packager@master
args: -S
15 changes: 14 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
{
"Lua.diagnostics.globals": [
"SlashCmdList"
"SlashCmdList",
"CreateFrame",
"tinsert",
"wipe",
"CopyTable",
"random",
"format",
"gmatch",
"print",
"tonumber",
"pairs",
"string",
"GetChannelName",
"table"
]
}
19 changes: 11 additions & 8 deletions OwoSpeak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ end

local function ShouldOwoTwo(chatType, channel)
if chatType == "CHANNEL" then
id, channelName = GetChannelName(channel)
local id, channelName = GetChannelName(channel)

for key, value in pairs(blockedChannels) do
if channelName == value then
Expand All @@ -87,6 +87,10 @@ end
local makeowo = SendChatMessage

function SendChatMessage(msg, chatType, language, channel)
-- im so sowwy meo
if msg == "GHI2ChannelReadyCheck" then

This comment has been minimized.

Copy link
@Meorawr

Meorawr Nov 25, 2023

:(

This comment has been minimized.

Copy link
@Ketho

Ketho Nov 25, 2023

Author Member

uhh oops guess it just nukes the message 😅

return
end
if ShouldOwo(chatType) and ShouldOwoTwo(chatType, channel) then
wipe(hyperlinks)
local owo = owos[random(#owos)]
Expand All @@ -105,7 +109,7 @@ function SendChatMessage(msg, chatType, language, channel)
return 'w' .. following
end
end)

s = s:gsub("([LR])([%S]*S?)", function(L, following)
if L == 'R' and following == 'S' then
return 'R' .. following
Expand All @@ -123,10 +127,9 @@ function SendChatMessage(msg, chatType, language, channel)
s = s:gsub("([fps])([aeio]%w+)", "%1w%2") or s
s = s:gsub("n([aeiou]%w)", "ny%1") or s
s = s:gsub(" th", " d") or s
-- y-you awe such a b-baka
s = format(" %s ", s)
for k in gmatch(s, "%a+") do
if random(10) == 1 then
if random(12) == 1 then
local firstChar = k:sub(1, 1)
s = s:gsub(format(" %s ", k), format(" %s-%s ", firstChar, k))
end
Expand All @@ -153,7 +156,7 @@ end
SLASH_OWOSPEAK1 = "/owo"
SLASH_OWOSPEAK2 = "/owospeak"

function tablefind(tab,el)
local function tablefind(tab,el)
for index, value in pairs(tab) do
if value == el then
return index
Expand All @@ -172,7 +175,7 @@ SlashCmdList.OWOSPEAK = function(msg)
db.whisper = not db.whisper
PrintMessage("Whisper - "..EnabledMsg[db.whisper])
elseif string.find(msg, "add") then
exploded = {}
local exploded = {}
for substring in string.gmatch(msg, "[^%s]+") do
table.insert(exploded, substring)
end
Expand All @@ -183,8 +186,8 @@ SlashCmdList.OWOSPEAK = function(msg)
PrintMessage("You must provide a channel name to block.")
end
elseif string.find(msg, "remove") then
exploded = {}
foundAndRemoved = false
local exploded = {}
local foundAndRemoved = false
for substring in string.gmatch(msg, "[^%s]+") do
table.insert(exploded, substring)
end
Expand Down
8 changes: 4 additions & 4 deletions OwoSpeak.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface-Retail: 90207
## Interface-Classic: 11307
## Interface-BC: 20501
## Interface-Retail: 100200
## Interface-Wrath: 30403
## Interface-Classic: 11404
## Version: @project-version@
## Version: 1.0.9
## Version: 1.1.0
## Title: OwoSpeak
## Notes: Pwease owo wesponsibwy
## Author: Ketho
Expand Down

0 comments on commit 46fc408

Please sign in to comment.