Merge pull request #8 from voidf1sh/dev

Adding ong bussin fr detection
This commit is contained in:
Skylar Grant 2022-12-11 13:54:45 -05:00 committed by GitHub
commit 27af811aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -2,9 +2,9 @@ name: Docker Image CI
on:
push:
branches: [ "main" ]
branches: [ "dev" ]
pull_request:
branches: [ "main" ]
branches: [ "dev" ]
env:
DHUB_UNAME: ${{ secrets.DHUB_UNAME }}
@ -19,8 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot
run: docker build . --file Dockerfile --tag v0idf1sh/nodbot-dev
- name: Log into Docker Hub
run: docker login -u $DHUB_UNAME -p $DHUB_PWORD
- name: Push image to Docker Hub
run: docker push v0idf1sh/nodbot
run: docker push v0idf1sh/nodbot-dev

View File

@ -449,7 +449,6 @@ const functions = {
const { strainName } = commandData;
const query = `SELECT id, strain, type, effects, description, flavor, rating FROM strains WHERE strain = ${db.escape(strainName)}`;
db.query(query, (err, rows, fields) => {
if (err) throw err;
if (rows != undefined) {
commandData.strainInfo = {
id: `${rows[0].id}`,
@ -484,6 +483,7 @@ const functions = {
}
},
submit(strainName) {
const query = ``
return strainName;
}
}

View File

@ -183,6 +183,7 @@ client.on('messageCreate', message => {
const lowerContent = message.content.toLowerCase();
if (lowerContent.includes('big') && lowerContent.includes('doinks')) message.reply('gang.');
if (lowerContent.includes('ligma')) message.reply('ligma balls, goteem');
if (lowerContent.includes('frfr') || lowerContent.includes('fr fr') || lowerContent.includes('bussin') || lowerContent.includes(' ong') || lowerContent.startsWith('ong')) message.reply('ongggg no :billed_cap: fr fr str8 bussin');
// Break the message down into its components and analyze it
const commandData = fn.dot.getCommandData(message);