Skip to content

Commit

Permalink
Добавил рейтинг
Browse files Browse the repository at this point in the history
  • Loading branch information
hoplik committed Jul 2, 2024
1 parent b3fabdd commit 65e98f4
Show file tree
Hide file tree
Showing 12 changed files with 2,861 additions and 91 deletions.
13 changes: 12 additions & 1 deletion Bot_Funcs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ await botClient.SendTextMessageAsync(
if (string.IsNullOrEmpty(user.FirstName)) Settings.Default.userFN = string.Empty; else Settings.Default.userFN = user.FirstName;
if (string.IsNullOrEmpty(user.LastName)) Settings.Default.userLN = string.Empty; else Settings.Default.userLN = user.LastName;
if (string.IsNullOrEmpty(user.Username)) Settings.Default.userN = string.Empty; else Settings.Default.userN = user.Username;
await botClient.SendTextMessageAsync(
chat.Id,
"Авторизация прошла успешно. Приложение FhF перезапущено.");
//Авторизация прошла удачно. Перегружаемся.
Application.Restart();
}
Expand Down Expand Up @@ -162,9 +165,17 @@ await botClient.SendTextMessageAsync(
case "button_rate":
{
await botClient.AnswerCallbackQueryAsync(callbackQuery.Id, "Готовлю рейтинг..."); // Всплывающее сообщение
string rate_str = string.Empty;
int count_str = 1;
Guide guide = new Guide();
foreach (Users_Rating users_Rating in guide.users_rate)
{
rate_str += $"{count_str}. {users_Rating.User_fullname} - {users_Rating.User_activities}" + Environment.NewLine;
count_str++;
}
await botClient.SendTextMessageAsync(
chat.Id,
$"Пока не научился :(");
rate_str);
return;
}
default:
Expand Down
14 changes: 12 additions & 2 deletions FirehoseFinder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<IsWebBootstrapper>true</IsWebBootstrapper>
<PublishUrl>C:\Users\hoplik\OneDrive\Рабочий стол\Publishing\</PublishUrl>
<PublishUrl>ftp://fhf.mywebcommunity.org/fhf.mywebcommunity.org/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
Expand All @@ -37,7 +37,7 @@
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<AutorunEnabled>true</AutorunEnabled>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>24.7.1.0</ApplicationVersion>
<ApplicationVersion>24.7.3.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down Expand Up @@ -126,6 +126,7 @@
<Reference Include="System.Numerics" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Security" />
<Reference Include="System.Windows.Forms.DataVisualization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand Down Expand Up @@ -167,6 +168,12 @@
<Compile Include="Forms\Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Rate.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Rate.Designer.cs">
<DependentUpon>Rate.cs</DependentUpon>
</Compile>
<Compile Include="Func.cs" />
<Compile Include="Forms\Greeting.cs">
<SubType>Form</SubType>
Expand Down Expand Up @@ -280,6 +287,9 @@
<EmbeddedResource Include="Forms\Peekpoke.zh-Hans.resx">
<DependentUpon>Peekpoke.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Rate.resx">
<DependentUpon>Rate.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\RawProgramForm.zh-Hans.resx">
<DependentUpon>RawProgramForm.cs</DependentUpon>
</EmbeddedResource>
Expand Down
Loading

0 comments on commit 65e98f4

Please sign in to comment.