diff --git a/.vscode/settings.json b/.vscode/settings.json index 2598660..841a9e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "yaml.schemas": { "https://json.schemastore.org/github-workflow.json": "file:///home/hyperbola/repo/pinkoi-coins-bot/.github/workflows/build.yml" - } + }, + "cSpell.words": [ + "pinkoi" + ] } \ No newline at end of file diff --git a/src/pinkoi-bot.ts b/src/pinkoi-bot.ts index e216e1d..12bb064 100644 --- a/src/pinkoi-bot.ts +++ b/src/pinkoi-bot.ts @@ -1,9 +1,6 @@ -// cspell:ignore isobject -// cspell:ignore successed - import axios, { AxiosError, AxiosResponse } from 'axios' import isobject from 'isobject' -import log from 'loglevel' +import log from 'loglevel' // c-spell: ignore loglevel import { FavList, InMissionPeriod, PinkoiResponse, PinkoiValidResponse, Redeem, Sign, SignResult, User, WeeklyMission } from './types' import { sleep } from './util' @@ -204,7 +201,7 @@ export default class PinkoiBot { // Delete the list along with the product url = 'https://www.pinkoi.com/apiv3/favlist/delete' - body = { favlist_id: favListId, unfav_all: true } + body = { favlist_id: favListId, unfav_all: true } // c-spell: ignore unfav response = await axios.post(url, body, { headers }) validatePinkoiResponse(response) @@ -296,7 +293,7 @@ export default class PinkoiBot { const result = response.data log.debug(JSON.stringify(result)) - if (result.result[0].successed !== true) { + if (result.result[0].successed !== true) { // c-spell: ignore successed if (process.env['STRICT']) { throw new Error('mission not solved') }