投稿時間:2023-06-28 11:14:50 RSSフィード2023-06-28 11:00 分まとめ(19件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ NTT西日本 鉄筋結束作業の約8割をロボット置き換えに成功 作業内容を公開 建ロボテックと協力 https://robotstart.info/2023/06/28/rebar-tying-work-replacing-robots.html NTT西日本鉄筋結束作業の約割をロボット置き換えに成功作業内容を公開建ロボテックと協力シェアツイートはてブNTT西日本と建ロボテックは、建設現場の労働力不足の解決をめざし、年月から建設ロボットの遠隔操作・オペレーション支援環境構築に向けた実証実験を行なった。 2023-06-28 01:11:00
IT ITmedia 総合記事一覧 [ITmedia News] 歩くゴルファーの後ろを追う“キャディロボ” ゴルフバッグを自動運搬 https://www.itmedia.co.jp/news/articles/2306/28/news105.html hellocaddy 2023-06-28 10:16:00
AWS lambdaタグが付けられた新着投稿 - Qiita 最近ストリーム対応したLambdaでChatGPTを動かす https://qiita.com/ryml/items/10f31544ca62561307d3 chatgpt 2023-06-28 10:46:34
python Pythonタグが付けられた新着投稿 - Qiita Numpyroを用いた回帰モデル https://qiita.com/ryosuke0010/items/8e906965a42eec6159e4 numpyro 2023-06-28 10:50:28
Program CodeZine JavaScript/TypeScriptランタイム「Deno」を開発するDeno Land、SOC 2の要件を満たす http://codezine.jp/article/detail/17962 JavaScriptTypeScriptランタイム「Deno」を開発するDenoLand、SOCの要件を満たす米DenoLandは、セキュリティ標準「SOCServiceOrganizationControlType」の要件を満たしたと月日現地時間に発表した。 2023-06-28 10:05:00
AWS AWSタグが付けられた新着投稿 - Qiita AWS EC2 AmazonLinux2 で Userdataのログを確認する https://qiita.com/renave/items/344189ed1b88789bed35 tvarlogcloudinitoutputlog 2023-06-28 10:31:29
技術ブログ Yahoo! JAPAN Tech Blog 爆速アプリ起動を目指して〜Android版 Yahoo!マップの挑戦〜 https://techblog.yahoo.co.jp/entry/2023062830427001/?cpt_n=BlogFeed&cpt_m=lnk&cpt_s=rss yahoo 2023-06-28 11:00:00
海外TECH DEV Community How to make a Discord bot that pings your Minecraft server🤔 https://dev.to/woodendoors7/how-to-make-a-discord-bot-that-pings-your-minecraft-server-1ce2 How to make a Discord bot that pings your Minecraft serverHave you ever had your very own Minecraft server and caught yourself thinking Wouldn t it be awesome if I could showcase useful information about my server or track its latency right inside Discord Well you re in luck This tutorial will walk you through the entire process starting from scratch so you can achieve all of that and more We ll be using discord js and the MinecraftStatusPinger library which is a modern small performant zero dependency typescript library written by me that doesn t mess with the server s response Let s get started Step Setup discord jsThis is pretty straightforward Run npm install discord js import discord js declare the client and it s Intents log in your bot and log a message once the client is ready import Client Events EmbedBuilder REST SlashCommandBuilder Routes GatewayIntentBits AttachmentBuilder  from discord js import mc from minecraftstatuspinger const client new Client intents GatewayIntentBits Guilds client once ready c gt console log Ready Logged in as c user tag Log in to Discord with your client s tokenclient login process env token Step Make a slash command In this step we ll make a ping slash command We ll start by declaring REST which is used for updating slash commands We set it s token to our token environment variable We add two options to the command hostname and port We send and register the slash command to Discord providing your application IDconst rest new REST version setToken process env token let commands new SlashCommandBuilder setName ping setDescription Pings a Minecraft server addStringOption option gt option setName ip setDescription IP of server setRequired true addIntegerOption option gt option setName port setDescription Port of server setRequired false setMinValue setMaxValue map command gt command toJSON await rest put Routes applicationCommands app ID body commands Step Handle the slash command Subscribe to the InteractionCreate event When one is received we check whether it is a slash command interaction Is it Bingo Once that s done we check it s name and if it s correct we call the getMcStatus function which we create in the next stepclient on Events InteractionCreate interaction Interaction gt if interaction isChatInputCommand return const commandName interaction if commandName ping return getMcStatus interaction Step Setup MinecraftStatusPingerAs mentioned before we ll be using the MinecraftStatusPinger library Run this command to install it from NPM npm install minecraftstatuspinger This ensures that it is on your computer and you can import and use it Then import it like so let mc require minecraftstatuspinger The setup is quite easier than discord js Just install it import it and get on your way No additional setup no creating a pinger object it just works out of the box Step Ping the Minecraft serverWe finally create the getMcStatus function We need the two options IP and port If the port is null it will automatically switch to by default Once we get those we can call lookup with both the options This makes the library send a ping request directly to the Minecraft server without contacting any intermediary APIs async function getMcStatus interaction let IP interaction options getString ip let port interaction options getInteger port let result await mc lookup hostname IP port port now inside status there is an object with these three children status statusRaw latency status is the object which contains the playerlist version favicon and MOTD We will use all of these in the next step statusRaw is just like status but it is an unparsed string instead of an object latency is a number which represents the latency to the server It is achieved by sending an arbitrary packet to the server and waiting for a response so it s way more accurate than a normal ping Step Creating an attachment of the faviconA minecraft server returns it s favicon as a Data URL blob We need to remove the prefix done with the replace function and regex which replaces all filetypes like data image png base or data image jpeg base Then it turns it into a buffer which is that discord js can use for an image attachment We set it s name to icon png async function getMcStatus interaction let IP interaction options getString ip let port interaction options getInteger port let result await mc lookup hostname IP port port let buf Buffer from result status favicon replace data image base base let attach await new AttachmentBuilder buf     setName icon png Step Make an embed and send itWe make a new embed which we give a title of the IP and the MOTD The MOTDs vary across versions for examply hypixel uses result status description modern servers should use result status description text We add a player count we add a version field which shows what version you can join the server from Lastly we add a thumbnail which is the previously defined attachment Then we reply to the interaction and we re done async function getMcStatus interaction let IP interaction options getString ip let port interaction options getInteger port let result await mc lookup hostname IP port port let buf Buffer from result status favicon replace data image base base let attach await new AttachmentBuilder buf     setName icon png     let motdEmbed new EmbedBuilder setTitle Status of IP setDescription result status description text  result status description MOTD addFields name Players value result status players online result status players max name Version value result status version name setThumbnail attachment icon png setColor DarkGreen interaction reply embeds motdEmbed files attach Final codeAnd we re done Wasn t so hard was it This is how the code should look import Client Events EmbedBuilder REST SlashCommandBuilder Routes GatewayIntentBits AttachmentBuilder from discord js import mc from minecraftstatuspinger const client new Client intents GatewayIntentBits Guilds client once ready c gt console log Ready Logged in as c user tag client on Events InteractionCreate interaction gt if interaction isChatInputCommand return const commandName interaction if commandName ping return getMcStatus interaction async function getMcStatus interaction let IP interaction options getString ip let port interaction options getInteger port let result await mc lookup hostname IP port port let buf Buffer from result status favicon replace data image base base let attach await new AttachmentBuilder buf setName icon png let motdEmbed new EmbedBuilder setTitle Status of IP setDescription result status description text result status description MOTD addFields name Players value result status players online result status players max name Version value result status version name setThumbnail attachment icon png setColor DarkGreen interaction reply embeds motdEmbed files attach const rest new REST version setToken process env token let commands new SlashCommandBuilder setName ping setDescription Pings a Minecraft server addStringOption option gt option setName ip setDescription Sex setRequired true addIntegerOption option gt option setName port setDescription Sex setRequired false setMinValue setMaxValue map command gt command toJSON rest put Routes applicationCommands Application ID body commands Log in to Discord with your client s tokenclient login process env token Thank you for following this tutorial I hope everything worked well 2023-06-28 01:26:04
金融 RSS FILE - 日本証券業協会 J-IRISS https://www.jsda.or.jp/about/hatten/j-iriss/index.html iriss 2023-06-28 01:14:00
金融 ニッセイ基礎研究所 欧州保険会社が2022年のSFCR(ソルベンシー財務状況報告書)を公表(4)-SFCRからの具体的内容の抜粋報告(その3)- https://www.nli-research.co.jp/topics_detail1/id=75239?site=nli 内部モデルを適用している会社は、以下の通りである。 2023-06-28 10:49:26
ビジネス ダイヤモンド・オンライン - 新着記事 ローズタウンのEV事業は死なず - WSJ発 https://diamond.jp/articles/-/325286 事業 2023-06-28 10:01:00
GCP Google Cloud Platform Japan 公式ブログ MIXI: 会話 AI ロボットの音声認識に Speech-to-Text を、学習基盤に Compute Engine を採用して自然な会話を実現 https://cloud.google.com/blog/ja/topics/customers/mixi-speech-to-text-for-speech-recognition-and-compute-engine-for-learning-infrastructure-/ そのためにも、GoogleCloudには、これまで以上に強力な学習環境の提供と、さらなるコストダウンを期待しています。 2023-06-28 03:00:00
GCP Google Cloud Platform Japan 公式ブログ 住友林業 / IHI: 熱帯泥炭地植林事業のための AI 開発基盤に Compute Engine を採用し、知見を活かした汎用モデルを構築 https://cloud.google.com/blog/ja/topics/customers/sfc-ihi-adopted-compute-engine-as-ai-development-platform/ 環境保護と経済的合理性、両者を両立させ、世界に展開させていくことが本当の気候変動対策につながっていくのです」加藤氏、「『熱帯泥炭地コンサルティング』と『質の高い炭素クレジット※の創出』を事業化することで、適切な森林管理を行っている事業者に対して、適切なペイバックがある社会を実現していきたい」並木氏としています。 2023-06-28 02:00:00
ビジネス 東洋経済オンライン プジョー、ルノー、シトロエンを購入する人々 購入者データに見るフランス3ブランドの個性 | トレンド | 東洋経済オンライン https://toyokeizai.net/articles/-/682014?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-06-28 10:30:00
ニュース Newsweek 家族間の犯罪件数が激増している、その背景 https://www.newsweekjapan.jp/stories/world/2023/06/post-102019.php 2023-06-28 10:40:00
IT 週刊アスキー Acrobat有償ライセンスならAdobe Fontsで好みのフォントを使い放題! https://weekly.ascii.jp/elem/000/004/140/4140283/ acrobat 2023-06-28 10:30:00
ニュース THE BRIDGE スマホで製造日報をデジタル化、製造現場DXの「Smart Craft」正式発表 #IVSPRWeek https://thebridge.jp/2023/06/factory-dx-smart-craft-launch-ivsprweek スマホで製造日報をデジタル化、製造現場DXの「SmartCraft」正式発表IVSPRWeekIVSPRWeekはスタートアップカンファレンス「IVS」とプレスリリース配信サービスのPRTIMESが企画する「StartupPRWeek」参加企業による新製品情報をお伝えします。 2023-06-28 01:05:28
GCP Cloud Blog JA MIXI: 会話 AI ロボットの音声認識に Speech-to-Text を、学習基盤に Compute Engine を採用して自然な会話を実現 https://cloud.google.com/blog/ja/topics/customers/mixi-speech-to-text-for-speech-recognition-and-compute-engine-for-learning-infrastructure-/ そのためにも、GoogleCloudには、これまで以上に強力な学習環境の提供と、さらなるコストダウンを期待しています。 2023-06-28 03:00:00
GCP Cloud Blog JA 住友林業 / IHI: 熱帯泥炭地植林事業のための AI 開発基盤に Compute Engine を採用し、知見を活かした汎用モデルを構築 https://cloud.google.com/blog/ja/topics/customers/sfc-ihi-adopted-compute-engine-as-ai-development-platform/ 環境保護と経済的合理性、両者を両立させ、世界に展開させていくことが本当の気候変動対策につながっていくのです」加藤氏、「『熱帯泥炭地コンサルティング』と『質の高い炭素クレジット※の創出』を事業化することで、適切な森林管理を行っている事業者に対して、適切なペイバックがある社会を実現していきたい」並木氏としています。 2023-06-28 02:00:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)