











!status


https://uonetplus-uczen.vulcan.net.pl/ i https://uonetplus-opiekun.vulcan.net.pl/





NazwaBrancha tylko nazwa-brancha


!reload jest niepotrzebne (edited)






















Przerwa techniczna
U nas działa


















notepada++Atoma

Visual Studio Code









eslint .console.errora linter krzyczy, że jest nieużywana zmienna



ci nie skonfigurowałem, więc na razie tylko ręcznie





git fetch && git pull origin code-style-settings


Więcej, Więcej, Więcej, Więcej












Change smth zamiast Changed smth, to taka dobra praktyka; będzie bardziej spójnie




!elegantsko
Czy chodziło ci o !elegancko? (edited)







[](https://travis-ci.com/wulkanowy/discord-bot)
.org i .com









CONTRIBUTING.md





















save_results('Rico') (edited)

















































master zrobiłem brancha

GITHUB_API_TOKEN










Przerwa techniczna





IDEA (edited)













windowsowym? po ten backslash trochę dziwnie wygląda, chyba, że to nie jest ścieżka





node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters)

v10.9.0v10.15.0 (edited)
10.15.0 na heroku


NODE_ICU_DATA
Node will use this ICU datafile if the environment variable NODE_ICU_DATA is set to “node_modules/full-icu”
/2019-01-18T13:27:09.283291+00:00 app[worker.1]: node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters)
2019-01-18T13:28:00.485940+00:00 app[api]: Scaled to web@0:Free worker@1:Free by user dominik.korsa@gmail.com
2019-01-18T13:28:03.890942+00:00 heroku[worker.1]: Starting process with command `node --icu-data-dir=node_modules\full-icu bot.js`
2019-01-18T13:28:04.559427+00:00 heroku[worker.1]: State changed from starting to up
2019-01-18T13:28:05.907659+00:00 heroku[worker.1]: State changed from crashed to starting
2019-01-18T13:28:05.783724+00:00 heroku[worker.1]: Process exited with status 9
2019-01-18T13:28:05.716281+00:00 app[worker.1]: node: could not initialize ICU (check NODE_ICU_DATA or --icu-data-dir parameters)
2019-01-18T13:28:12.238359+00:00 heroku[worker.1]: Starting process with command `node --icu-data-dir=node_modules\full-icu bot.js`
2019-01-18T13:28:15.278543+00:00 heroku[worker.1]: State changed from up to crashed
2019-01-18T13:28:15.257854+00:00 heroku[worker.1]: Process exited with status 9








throw new Error('pl locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA')











.tz('Europe/Warsaw')raz?










studentOld wrzuciłeś w utilsy a używasz tamtych eksportów tylko raz







{
error: {
code: "404",
message: "Build on branch login-form-style not found."
}
}












browser_download_url













client.emojis.get("542829911337992203")
Beginner contributorSerious contributorEnthusiastic contributor!połącz raczej odpada, bo za dużo polskich znaków!polacz

dominik-korsa na wulkanowy

























!pobierz czy !wersja?















































[\w\-]+\/[\w\-]+













GitHub 



status dzienniczka na odczyty czujników sejsmicznych?











GitHub 








There is an npm for that (edited)


==== to stworzy się pusty bin





=== to bot też myśli, że to jest wiadomość do hastebin== i dwa ostatnie też

=wiadomość=




























THE PROPER WAY






















lodash/lodash#4716discord-bot#43 (resolves to wulkanowy/discord-bot#43)#43 (resolves to wulkanowy/wulkanowy#43))
GitHub
GitHub
GitHub 






















lodash/lodash#4716
discord-bot#43 (resolves to wulkanowy/discord-bot#43)
#43 (resolves to wulkanowy/wulkanowy#43))
GitHub 



lodash/lodash#4716discord-bot#43 (resolves to wulkanowy/discord-bot#43)#43 (resolves to wulkanowy/wulkanowy#43))






GitHub 










GitHub 









GitHub 















DISCORD_TOKEN
process.env.


DISCORD_TOKEN=[...] npm run startts-nodets-node{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"declaration": false,
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"lib": ["ES2020"],
"types": [
"node"
]
}
} jeszcze takie zmianyw tsconfigu



{
"name": "wulkanowy-discord-bot",
"version": "1.0.0",
"description": "Support bot for Wulkanowy Discord server",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"lint": "eslint -c .eslintrc.json --ext .ts src/**",
"lint:fix": "eslint -c .eslintrc.json --ext .ts src/** --fix",
"start": "ts-node src/index.ts"
},
"author": "Dominik Korsa <dominik.korsa@gmail.com> (https://github.com/dominik-korsa)",
"contributors": [
"doteq <doteeqq@gmail.com>",
"mklkj"
],
"license": "MIT",
"dependencies": {
"@types/moment-timezone": "^0.5.13",
"cheerio": "^1.0.0-rc.3",
"discord.js": "^12.0.2",
"fuzzyset.js": "0.0.91",
"jjg-ping": "^1.0.3",
"lodash": "^4.17.15",
"moment-timezone": "^0.5.28",
"ping": "^0.2.2",
"request": "^2.88.2",
"request-promise": "^4.2.5",
"ts-node": "^8.8.2",
"voca": "^1.4.0"
},
"devDependencies": {
"@types/fuzzyset.js": "0.0.2",
"@types/cheerio": "^0.22.17",
"@types/lodash": "^4.14.149",
"@types/node": "^13.11.0",
"@types/request-promise": "^4.1.46",
"@types/voca": "^1.4.0",
"@types/ws": "^7.2.3",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-airbnb-typescript": "^7.2.0",
"eslint-plugin-import": "^2.20.2",
"typescript": "^3.8.3"
},
"type": "module"
} package.json




"type": "module"tsconfig.json
ts-node

GitHub 

GitHub 












await message.channel.startTyping(); resolves dopiero po zakończeniu pisania
// noinspection JSIgnoredPromiseFromCall jeśli chcesz żeby ci tego nie podpowiadało

GitHub 







!github discord-bot
bot wybierz pr o którym wspomnieć":
1. #14 - cos
2. #15 - cos innego reakcje wyboru
GitHub
GitHub 




GitHub 








types.ts i możesz prościej dojść do tego skąd co pochodzi 


import getRepoInfo from './get-repo-info';
import getIssueInfo from './get-issue-info';
import getPullInfo from './get-pull-info';
export * from './types';
export {
getRepoInfo,
getIssueInfo,
getPullInfo,
};

export { default as getRepoInfo } from './get-repo-info';
export { default as getIssueInfo } from './get-issue-info';
export { default as getPullInfo } from './get-pull-info';
export * from './types'; (edited)




GitHub 

GitHub 
















ogląda !pomoc od x minut (edited)




--unhandled-rejections=strict (see https://nodejs.org/api/cli.html<#558345455558197249>_unhandled_rejections_mode). (rejection id: 35)==
Error: Invalid URI "hastebin.cf/documents"












Dziennik UONET+
















3



















































GitHub 



































GitHub 









npm run lint:fix


GitHub 












opole, dla resmana rzeszow, itd





r nie będą działać
GitHub 












vulcan.net.pl i eszkola.opolskie.pl (edited)











eszkola.opolskie.pl to może być inny symbol niż opole?


















GitHub 














--tls-min-v1.0 dla node, ale my używamy ts-node i nie ma jak jej przekazać (edited)
node -r ts-node/register


2020-05-25T22:45:31.775117+00:00 app[worker.1]: (node:23) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Access
2020-05-25T22:45:31.775137+00:00 app[worker.1]: at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
2020-05-25T22:45:31.775138+00:00 app[worker.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-05-25T22:45:31.775423+00:00 app[worker.1]: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
2020-05-25T22:45:31.775713+00:00 app[worker.1]: (node:23) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (edited)





GitHub 











.setDescription(`<@${id}>`) powinno być .setDescription(`<@!${id}>`)

!? (edited)

> <@!237150211254779904>
<@237150211254779904> 
































Podany identyfikator… jako <code>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa (edited)

TreśćTreść
2020-08-29T09:21:27.376167+00:00 app[worker.1]: https://uonetplus-uczen.vulcan.net.pl/warszawa
2020-08-29T09:26:27.248602+00:00 app[worker.1]: (node:23) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Access
2020-08-29T09:26:27.248612+00:00 app[worker.1]: at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
2020-08-29T09:26:27.248612+00:00 app[worker.1]: at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-08-29T09:26:27.248673+00:00 app[worker.1]: (node:23) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)















!rola lista
GitHub
GitHub
GitHub
GitHub !wersja and utils/appVersion.js
GitHub
GitHub
GitHub
GitHub
GitHub !lorem command, that shows you fragment of Lorem ipsum.
GitHub 














Client.options jest disableMentions, które trzeba ustawić na 'all' (edited)













!rola lista
GitHub
GitHub
GitHub
GitHub !wersja and utils/appVersion.js
GitHub 

GitHub
GitHub
GitHub
GitHub 












issues = issues [:3]

issues = issues.filter((value, index)=> index > 3); (edited)






















GitHub 















GitHub 












































web, to nie odbiera requestówrouter, czyli to wina herokuweb





















GitHub 






GitHub 



GitHub 




GitHub 


























GitHub 












































~/d/w/discord-bot ❯❯❯ ncu master
Checking /Users/mklkj/dev/wulkanowy/discord-bot/package.json
[====================] 24/24 100%
@typescript-eslint/eslint-plugin ^3.10.1 → ^4.32.0
@typescript-eslint/parser ^3.10.1 → ^4.32.0
eslint-config-airbnb-typescript ^9.0.0 → ^14.0.0
@types/node ^14.0.23 → ^16.10.2
@types/ws ^7.2.6 → ^8.2.0
cheerio ^1.0.0-rc.3 → ^1.0.0-rc.10
discord.js ^12.2.0 → ^13.1.0
ts-node ^8.10.2 → ^10.2.1
typescript ^3.9.10 → ^4.4.3


GitHub 



























DIRECT_MESSAGES


DIRECT_MESSAGES 






msg.channel.sendTyping(), bot works just fine again.
Bot had permission integer 8 (administrator) and Bot has all permissions in the channel.
I'm fairly certain I did not mess anything up.
!image
Here's the error

GitHub 




















































Response.raise_for_code() czy coś podobnego, to tak











try catch










GitHub 









2021-10-20T23:14:05.574607+00:00 app[worker.1]: /app/node_modules/discord.js/src/util/Util.js:414
2021-10-20T23:14:05.574632+00:00 app[worker.1]: if (!allowEmpty && data.length === 0) throw new error(errorMessage);
2021-10-20T23:14:05.574633+00:00 app[worker.1]: ^
2021-10-20T23:14:05.577170+00:00 app[worker.1]: RangeError [MESSAGE_CONTENT_TYPE]: Message content must be a non-empty string.
2021-10-20T23:14:05.577171+00:00 app[worker.1]: at Function.verifyString (/app/node_modules/discord.js/src/util/Util.js:414:49)
2021-10-20T23:14:05.577172+00:00 app[worker.1]: at MessagePayload.makeContent (/app/node_modules/discord.js/src/structures/MessagePayload.js:113:22)
2021-10-20T23:14:05.577172+00:00 app[worker.1]: at MessagePayload.resolveData (/app/node_modules/discord.js/src/structures/MessagePayload.js:128:26)
2021-10-20T23:14:05.577173+00:00 app[worker.1]: at MessageManager.edit (/app/node_modules/discord.js/src/managers/MessageManager.js:129:8)
2021-10-20T23:14:05.577173+00:00 app[worker.1]: at Message.edit (/app/node_modules/discord.js/src/structures/Message.js:627:34)
2021-10-20T23:14:05.577174+00:00 app[worker.1]: at /app/src/commands/ping.ts:13:21
2021-10-20T23:14:05.577174+00:00 app[worker.1]: at Generator.next (<anonymous>)
2021-10-20T23:14:05.577175+00:00 app[worker.1]: at fulfilled (/app/src/commands/ping.ts:5:58)
2021-10-20T23:14:05.577175+00:00 app[worker.1]: at processTicksAndRejections (node:internal/process/task_queues:96:5) {
2021-10-20T23:14:05.577176+00:00 app[worker.1]: [Symbol(code)]: 'MESSAGE_CONTENT_TYPE'
2021-10-20T23:14:05.577176+00:00 app[worker.1]: }
2021-10-20T23:14:05.745187+00:00 heroku[worker.1]: Process exited with status 1





GitHub 



GitHub 




































GitHub 





























client.application.commands.update()





> wulkanowy-discord-bot@1.0.0 start
> node --tls-min-v1.0 -r ts-node/register src/index.ts
Uruchomiono bota :)
DiscordAPIError: Missing Access
at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/app/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async NewsChannel.sendTyping (/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:190:5)
at async Promise.all (index 0){
method: 'post',
path: '/channels/522119365265588224/typing',
code: 50001,
httpStatus: 403,
requestData: {
json: undefined,
files: []
}
}
/app/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Missing Permissions
at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/app/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async NewsChannel.send (/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:171:15)
at async Promise.all (index 0){
method: 'post',
path: '/channels/522119365265588224/messages',
code: 50013,
httpStatus: 403,
requestData: {
json: {
content: 'Błąd: `Missing Access`',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
},
files: []
}
}





> wulkanowy-discord-bot@1.0.0 start
> node --tls-min-v1.0 -r ts-node/register src/index.ts
DiscordAPIError
at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/app/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async WebSocketManager.connect (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:128:9)
at async Client.login (appnode_modulesdiscord.jssrcclientClient.js:245:7){
method: 'get',
path: '/gateway/bot',
code: undefined,
httpStatus: 404,
requestData: {
json: undefined,
files: []
}
}
Process exited with status 1

/api/gateway/bot tylko /gateway/bot?
https://discord.com/api/v9) jest przechowywany w zmiennej








Uruchomiono bota :)
https://uonetplus-uczen.vulcan.net.pl/warszawa
Denis. wbił!
/app/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Missing Permissions
at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/app/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async TextChannel.send (/app/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:171:15) {
method: 'post',
path: '/channels/459323109971984384/messages',
code: 50013,
httpStatus: 403,
requestData: {
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: [Array],
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
},
files: []
}
}
Process exited with status 1
State changed from up to crashed




'/channels/459323109971984384/messages',




GitHub 
























































wulkanowy/sdk
1
2


1














!rola lista
GitHub 


















null (edited)


















repo#issue (edited)















fraza/fraza to g fraza/fraza żeby nie szukało 3/4 itd xD













GitHub 




GitHub 




































































jeinislaw na githubie xd




GitHub 















poetry coś tam
project.toml

















GitHub 








AssertionError: assert (('owner', 'repo'), 1) == ('owner', 'repo', 1)





































POST /invites/vccAQBr nie masz psychy










errorMessage lub MainPage_ErrorDiv
































































)















(edited)



























































































































































FROM python:3.9
ADD main.py .
RUN pip install requests
CMD [“python”, “./main.py”] 
ubuntu@fakelog:~$ sudo docker logs f9c864380a5a
> wulkanowy-discord-bot@1.0.0 start
> node --tls-min-v1.0 -r ts-node/register src/index.ts
Uruchomiono bota :)wulkanowy-bot z heroku








GitHub 






GitHub 

ubuntu@fakelog:~$ sudo docker logs f9c864380a5a
> wulkanowy-discord-bot@1.0.0 start
> node --tls-min-v1.0 -r ts-node/register src/index.ts
Uruchomiono bota :)
kaziu wbił!
MateusZz wbił!
Xynder wbił!
zjep wbił!
Xyueta wbił!
_Max_TheKing_ wbił!
Strachu z Mokotowa wbił!
kacorvixon wbił!
mara i nic wbił!
Kapcerek wbił!
kubiszonkorniszonn wbił!
ups przewozy miedzynarodowe wbił!
acid wbił!
Zuzia wbił!
winterxd wbił!
Marta.cylwik wbił!
GetLostLoser wbił!
Vincent1038 wbił!
Kuch4rX wbił!
Filipenno wbił!
Filipenno wbił!
21yo Hottie wbił!
The Blue Creature wbił!
Moper wbił!
krysio17 wbił!
Etaro wbił!
Ojciec Chrzestny wbił!
liptonkx wbił!
kusoq wbił!
「ダーリン」𝔸𝕝𝕖𝕩𝕒𝕟𝕕𝕖𝕣 wbił!
czarnyTV wbił!
shady wbił!
Nawałka_57 wbił!
Czempionek wbił!
☆Dziwaczek jalapa☆ wbił!
RoksanaBisaga07 wbił!
lampa wbił!
Kubix wbił!
justa wbił!
snajper wbił!
/bot/node_modules/discord.js/src/rest/RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Cannot send messages to this user
at RequestHandler.execute (/bot/node_modules/discord.js/src/rest/RequestHandler.js:298:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RequestHandler.push (/bot/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
at async DMChannel.send (/bot/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:171:15) {
method: 'post',
path: '/channels/1046869566510338138/messages',
code: 50007,
httpStatus: 403,
requestData: {
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: [Array],
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
},
files: []
}
}












GitHub 





















GitHub 





































DISCORD_TOKEN jest w obu, powinno działać (edited)





sudo apt-get install build-essential libssl-dev libffi-dev python-dev
























RUN apk add gcc libressl-dev libffi-dev python3-dev musl-dev





RUN apk add gcc libressl-dev libffi-dev python3-dev musl-dev 





















!?


Step 8/10 : RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root
---> Running in 63e2c51075e2
The currently activated Python version 3.10.8 is not supported by the project (^3.11).
Trying to find and use a compatible version.












$ gh pr checkout 4
$ git push




















api_github_token słabo brzmi







git config --global pull.merge false chyba






















jest apka na ios?
jest wersja na iphone?
kiedy będzie ios 17?


pip install uonet-fslogin






uonetplus-dziennik to niech będzie też uonetplus-dziennikplus































