Skip to content

Project w/ Tiffany#2

Open
ChaseFaggard wants to merge 1 commit into
TalentPath:mainfrom
ChaseFaggard:work
Open

Project w/ Tiffany#2
ChaseFaggard wants to merge 1 commit into
TalentPath:mainfrom
ChaseFaggard:work

Conversation

@ChaseFaggard
Copy link
Copy Markdown

Comment thread main.js
const { DbService } = require("m3o/db");
const prompt = require("prompt-sync")();

M3O_API_TOKEN = "ZTAyOWY3NDgtNGRjZS00MmRhLTg1ZWEtNDAxZDIzODU3OTg4";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you declare constants with the const keyword

Comment thread main.js

const main = async () => {

console.log(BOT_PREFIX + " Hi there. I'm Terra 2.0. Ask me anything!");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loved the Terra 2.0 bot! lol

Comment thread main.js
return (str.toLowerCase() || '').replace(result, '').replace(/[ ]{2,}/, ' ').replace(/[^A-Za-z0-9\s]/g,"").replace(/\s{2,}/g, " ").replace(/\s/g, '');
}

const createRecord = async (question, answer) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of DB to store info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants